Message ID | 1369776027-17859-51-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/kernel/kmod.c b/kernel/kmod.c index 0023a87..41e1524 100644 --- a/kernel/kmod.c +++ b/kernel/kmod.c @@ -561,6 +561,11 @@ int call_usermodehelper_exec(struct subprocess_info *sub_info, int wait) int retval = 0; helper_lock(); + if (!sub_info->path) { + retval = -EINVAL; + goto out; + } + if (sub_info->path[0] == '\0') goto out;