summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorJP Abgrall <jpa@google.com>2014-11-14 00:47:18 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-11-14 00:47:18 +0000
commit4ad65befd1fd525df4257f0e95e8b93f89ef0bff (patch)
tree0fe10f0f91fb7a1a5069dcac3ca029fcb6988229 /init
parent08807417a7d0d2f857c181f914cd12972fe8988e (diff)
parentd707b7f99357b521e01c0b11489a3b17b04a2a2d (diff)
downloadsystem_core-4ad65befd1fd525df4257f0e95e8b93f89ef0bff.zip
system_core-4ad65befd1fd525df4257f0e95e8b93f89ef0bff.tar.gz
system_core-4ad65befd1fd525df4257f0e95e8b93f89ef0bff.tar.bz2
am d707b7f9: am b0a10b53: Merge "Fix segfault in get_character_device_symlinks()"
* commit 'd707b7f99357b521e01c0b11489a3b17b04a2a2d': Fix segfault in get_character_device_symlinks()
Diffstat (limited to 'init')
-rw-r--r--init/devices.c2
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)) {