diff options
author | Oleg Nesterov <oleg@redhat.com> | 2012-03-23 15:02:49 -0700 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2013-03-06 03:24:27 +0000 |
commit | 9aa0f9b368807533afd246b0e2e3a72fae9c7c98 (patch) | |
tree | 9b4334e5c162dc63d123a0a46c43538e7850c71f /kernel | |
parent | ed549cef5a192eae889b36117beae72d4d68de79 (diff) |
usermodehelper: ____call_usermodehelper() doesn't need do_exit()
commit 5b9bd473e3b8a8c6c4ae99be475e6e9b27568555 upstream.
Minor cleanup. ____call_usermodehelper() can simply return, no need to
call do_exit() explicitely.
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Tejun Heo <tj@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/kmod.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/kmod.c b/kernel/kmod.c index ff1277c4e63..dedcd0b8a98 100644 --- a/kernel/kmod.c +++ b/kernel/kmod.c @@ -186,7 +186,7 @@ static int ____call_usermodehelper(void *data) /* Exec failed? */ fail: sub_info->retval = retval; - do_exit(0); + return 0; } void call_usermodehelper_freeinfo(struct subprocess_info *info) |