diff options
Diffstat (limited to 'kernel')
| -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 4f895556d7b..8a65e7886f4 100644 --- a/kernel/kmod.c +++ b/kernel/kmod.c | |||
| @@ -255,12 +255,9 @@ static void __call_usermodehelper(struct work_struct *work) | |||
| 255 | { | 255 | { |
| 256 | struct subprocess_info *sub_info = | 256 | struct subprocess_info *sub_info = |
| 257 | container_of(work, struct subprocess_info, work); | 257 | container_of(work, struct subprocess_info, work); |
| 258 | enum umh_wait wait = sub_info->wait; | 258 | int wait = sub_info->wait & ~UMH_KILLABLE; |
| 259 | pid_t pid; | 259 | pid_t pid; |
| 260 | 260 | ||
| 261 | if (wait != UMH_NO_WAIT) | ||
| 262 | wait &= ~UMH_KILLABLE; | ||
| 263 | |||
| 264 | /* CLONE_VFORK: wait until the usermode helper has execve'd | 261 | /* CLONE_VFORK: wait until the usermode helper has execve'd |
| 265 | * successfully We need the data structures to stay around | 262 | * successfully We need the data structures to stay around |
| 266 | * until that is done. */ | 263 | * until that is done. */ |
| @@ -430,8 +427,7 @@ EXPORT_SYMBOL(call_usermodehelper_setfns); | |||
| 430 | * asynchronously if wait is not set, and runs as a child of keventd. | 427 | * asynchronously if wait is not set, and runs as a child of keventd. |
| 431 | * (ie. it runs with full root capabilities). | 428 | * (ie. it runs with full root capabilities). |
| 432 | */ | 429 | */ |
| 433 | int call_usermodehelper_exec(struct subprocess_info *sub_info, | 430 | int call_usermodehelper_exec(struct subprocess_info *sub_info, int wait) |
| 434 | enum umh_wait wait) | ||
| 435 | { | 431 | { |
| 436 | DECLARE_COMPLETION_ONSTACK(done); | 432 | DECLARE_COMPLETION_ONSTACK(done); |
| 437 | int retval = 0; | 433 | int retval = 0; |
