Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75534
b: refs/heads/master
c: 7846803
h: refs/heads/master
v: v3
  • Loading branch information
Nigel Cunningham authored and Linus Torvalds committed Jan 17, 2008
1 parent 6501d44 commit 3add3a2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 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: 34aebfd3bdc93c0c5614f1f61e43b6ddc4be52ae
refs/heads/master: 784680336b616dcc4c17cbd25add3b49c555cdeb
13 changes: 6 additions & 7 deletions trunk/kernel/kmod.c
Original file line number Diff line number Diff line change
Expand Up @@ -451,13 +451,11 @@ int call_usermodehelper_exec(struct subprocess_info *sub_info,
enum umh_wait wait)
{
DECLARE_COMPLETION_ONSTACK(done);
int retval;
int retval = 0;

helper_lock();
if (sub_info->path[0] == '\0') {
retval = 0;
if (sub_info->path[0] == '\0')
goto out;
}

if (!khelper_wq || usermodehelper_disabled) {
retval = -EBUSY;
Expand All @@ -468,13 +466,14 @@ int call_usermodehelper_exec(struct subprocess_info *sub_info,
sub_info->wait = wait;

queue_work(khelper_wq, &sub_info->work);
if (wait == UMH_NO_WAIT) /* task has freed sub_info */
return 0;
if (wait == UMH_NO_WAIT) /* task has freed sub_info */
goto unlock;
wait_for_completion(&done);
retval = sub_info->retval;

out:
out:
call_usermodehelper_freeinfo(sub_info);
unlock:
helper_unlock();
return retval;
}
Expand Down

0 comments on commit 3add3a2

Please sign in to comment.