Merge "Fix segfault in get_character_device_symlinks()"

This commit is contained in:
JP Abgrall 2014-11-13 18:24:07 +00:00 committed by Gerrit Code Review
commit b0a10b53ee

View file

@ -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)) {