Merge "Fix segfault in get_character_device_symlinks()"
This commit is contained in:
commit
b0a10b53ee
1 changed files with 1 additions and 1 deletions
|
@ -458,7 +458,7 @@ static char **get_character_device_symlinks(struct uevent *uevent)
|
|||
|
||||
/* skip "/devices/platform/<driver>" */
|
||||
parent = strchr(uevent->path + pdev->path_len, '/');
|
||||
if (!*parent)
|
||||
if (!parent)
|
||||
goto err;
|
||||
|
||||
if (!strncmp(parent, "/usb", 4)) {
|
||||
|
|
Loading…
Reference in a new issue