Skip to content

Commit 98b4aa8

Browse files
committed
ppps: check if ppps3_path is valid
funny joke about steel + water or something Signed-off-by: Caleb Connolly <[email protected]>
1 parent d678216 commit 98b4aa8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ppps.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ void ppps_power(struct device *dev, bool on)
7979
dev->ppps_path = temp;
8080
}
8181

82-
if (dev->ppps3_path[0] != '/') {
82+
if (dev->ppps3_path && dev->ppps3_path[0] != '/') {
8383
char *temp;
8484

8585
asprintf(&temp, PPPS_BASE_PATH, dev->ppps3_path);

0 commit comments

Comments
 (0)