am b0a10b53: Merge "Fix segfault in get_character_device_symlinks()"
* commit 'b0a10b53eeeef6428bd034e3097391e9a7a4788b': Fix segfault in get_character_device_symlinks()
This commit is contained in:
commit
d707b7f993
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…
Add table
Reference in a new issue