diff options
Diffstat (limited to 'kernel/kmod.c')
-rw-r--r-- | kernel/kmod.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/kernel/kmod.c b/kernel/kmod.c index f92f917c450c..8341de91613f 100644 --- a/kernel/kmod.c +++ b/kernel/kmod.c | |||
@@ -257,12 +257,9 @@ static void __call_usermodehelper(struct work_struct *work) | |||
257 | { | 257 | { |
258 | struct subprocess_info *sub_info = | 258 | struct subprocess_info *sub_info = |
259 | container_of(work, struct subprocess_info, work); | 259 | container_of(work, struct subprocess_info, work); |
260 | enum umh_wait wait = sub_info->wait; | 260 | int wait = sub_info->wait & ~UMH_KILLABLE; |
261 | pid_t pid; | 261 | pid_t pid; |
262 | 262 | ||
263 | if (wait != UMH_NO_WAIT) | ||
264 | wait &= ~UMH_KILLABLE; | ||
265 | |||
266 | /* CLONE_VFORK: wait until the usermode helper has execve'd | 263 | /* CLONE_VFORK: wait until the usermode helper has execve'd |
267 | * successfully We need the data structures to stay around | 264 | * successfully We need the data structures to stay around |
268 | * until that is done. */ | 265 | * until that is done. */ |
@@ -451,8 +448,7 @@ EXPORT_SYMBOL(call_usermodehelper_setfns); | |||
451 | * asynchronously if wait is not set, and runs as a child of keventd. | 448 | * asynchronously if wait is not set, and runs as a child of keventd. |
452 | * (ie. it runs with full root capabilities). | 449 | * (ie. it runs with full root capabilities). |
453 | */ | 450 | */ |
454 | int call_usermodehelper_exec(struct subprocess_info *sub_info, | 451 | int call_usermodehelper_exec(struct subprocess_info *sub_info, int wait) |
455 | enum umh_wait wait) | ||
456 | { | 452 | { |
457 | DECLARE_COMPLETION_ONSTACK(done); | 453 | DECLARE_COMPLETION_ONSTACK(done); |
458 | int retval = 0; | 454 | int retval = 0; |