From 200fb0ca1a5529c0420a5ec7f44b8833e4692db6 Mon Sep 17 00:00:00 2001 From: Oleg Nesterov Date: Thu, 16 May 2013 17:43:55 +0200 Subject: [PATCH] --- yaml --- r: 375662 b: refs/heads/master c: 264b83c07a84223f0efd0d1db9ccc66d6f88288f h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/kernel/kmod.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 32bb727c1fe2..b0809ed40aff 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 5c64e3a45d43c6e3fa87cbe02e10059171d10812 +refs/heads/master: 264b83c07a84223f0efd0d1db9ccc66d6f88288f diff --git a/trunk/kernel/kmod.c b/trunk/kernel/kmod.c index 1296e72e4161..8241906c4b61 100644 --- a/trunk/kernel/kmod.c +++ b/trunk/kernel/kmod.c @@ -569,6 +569,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;