diff options
author | JP Abgrall <jpa@google.com> | 2014-11-13 19:10:18 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-11-13 19:10:18 +0000 |
commit | d707b7f99357b521e01c0b11489a3b17b04a2a2d (patch) | |
tree | 679b48af6604eb7667bd899eb662d461bdc0b0ff /init | |
parent | 755b9099203fd1b491bf82dc8dad5bafba4f6bcd (diff) | |
parent | b0a10b53eeeef6428bd034e3097391e9a7a4788b (diff) | |
download | system_core-d707b7f99357b521e01c0b11489a3b17b04a2a2d.zip system_core-d707b7f99357b521e01c0b11489a3b17b04a2a2d.tar.gz system_core-d707b7f99357b521e01c0b11489a3b17b04a2a2d.tar.bz2 |
am b0a10b53: Merge "Fix segfault in get_character_device_symlinks()"
* commit 'b0a10b53eeeef6428bd034e3097391e9a7a4788b':
Fix segfault in get_character_device_symlinks()
Diffstat (limited to 'init')
-rw-r--r-- | init/devices.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init/devices.c b/init/devices.c index 2fa5c22..a95111a 100644 --- a/init/devices.c +++ b/init/devices.c @@ -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)) { |