Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 198742
b: refs/heads/master
c: d47419c
h: refs/heads/master
v: v3
  • Loading branch information
Oleg Nesterov authored and Linus Torvalds committed May 27, 2010
1 parent 7b87274 commit fd50936
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7d64224217b53b23243fd2aa428001486f2a5da5
refs/heads/master: d47419cd967a4f032a194148a7b08afad32faded
10 changes: 4 additions & 6 deletions trunk/kernel/kmod.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,7 @@ static int wait_for_helper(void *data)
sub_info->retval = ret;
}

if (sub_info->wait == UMH_NO_WAIT)
call_usermodehelper_freeinfo(sub_info);
else
complete(sub_info->complete);
complete(sub_info->complete);
return 0;
}

Expand All @@ -217,13 +214,13 @@ static void __call_usermodehelper(struct work_struct *work)
{
struct subprocess_info *sub_info =
container_of(work, struct subprocess_info, work);
pid_t pid;
enum umh_wait wait = sub_info->wait;
pid_t pid;

/* CLONE_VFORK: wait until the usermode helper has execve'd
* successfully We need the data structures to stay around
* until that is done. */
if (wait == UMH_WAIT_PROC || wait == UMH_NO_WAIT)
if (wait == UMH_WAIT_PROC)
pid = kernel_thread(wait_for_helper, sub_info,
CLONE_FS | CLONE_FILES | SIGCHLD);
else
Expand All @@ -232,6 +229,7 @@ static void __call_usermodehelper(struct work_struct *work)

switch (wait) {
case UMH_NO_WAIT:
call_usermodehelper_freeinfo(sub_info);
break;

case UMH_WAIT_PROC:
Expand Down

0 comments on commit fd50936

Please sign in to comment.