Message ID | 1381351883-8446-1-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/kernel/kmod.c b/kernel/kmod.c index 41e1524..6444887 100644 --- a/kernel/kmod.c +++ b/kernel/kmod.c @@ -560,6 +560,10 @@ int call_usermodehelper_exec(struct subprocess_info *sub_info, int wait) DECLARE_COMPLETION_ONSTACK(done); int retval = 0; + if (!sub_info->path) { + call_usermodehelper_freeinfo(sub_info); + return -EINVAL; + } helper_lock(); if (!sub_info->path) { retval = -EINVAL;