summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorJP Abgrall <jpa@google.com>2014-11-13 19:10:18 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-11-13 19:10:18 +0000
commitd707b7f99357b521e01c0b11489a3b17b04a2a2d (patch)
tree679b48af6604eb7667bd899eb662d461bdc0b0ff /init
parent755b9099203fd1b491bf82dc8dad5bafba4f6bcd (diff)
parentb0a10b53eeeef6428bd034e3097391e9a7a4788b (diff)
downloadsystem_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.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)) {