Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 295268
b: refs/heads/master
c: b344992
h: refs/heads/master
v: v3
  • Loading branch information
Oleg Nesterov authored and Linus Torvalds committed Mar 23, 2012
1 parent 46ba57a commit 1deeb36
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 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: 70834d3070c3f3015ab5c05176d54bd4a0100546
refs/heads/master: b3449922502f5a161ee2b5022a33aec8472fbf18
9 changes: 7 additions & 2 deletions trunk/kernel/kmod.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,11 @@ void call_usermodehelper_freeinfo(struct subprocess_info *info)
}
EXPORT_SYMBOL(call_usermodehelper_freeinfo);

static void umh_complete(struct subprocess_info *sub_info)
{
complete(sub_info->complete);
}

/* Keventd can't block, but this (a child) can. */
static int wait_for_helper(void *data)
{
Expand Down Expand Up @@ -235,7 +240,7 @@ static int wait_for_helper(void *data)
sub_info->retval = ret;
}

complete(sub_info->complete);
umh_complete(sub_info);
return 0;
}

Expand Down Expand Up @@ -269,7 +274,7 @@ static void __call_usermodehelper(struct work_struct *work)
case UMH_WAIT_EXEC:
if (pid < 0)
sub_info->retval = pid;
complete(sub_info->complete);
umh_complete(sub_info);
}
}

Expand Down

0 comments on commit 1deeb36

Please sign in to comment.