diff options
author | Oleg Nesterov <oleg@redhat.com> | 2012-03-23 15:02:49 -0700 |
---|---|---|
committer | Willy Tarreau <w@1wt.eu> | 2013-06-10 11:42:16 +0200 |
commit | 67fd05cc8b160538a9da654758c45e0295272c47 (patch) | |
tree | f3647cdafb732a196118538b68bce7ce33ea9a11 /kernel | |
parent | e2a28e9a9f98d9a73ea5ce58328595dcab64a1f6 (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>
[dannf: adjusted to apply to Debian's 2.6.32]
Signed-off-by: Willy Tarreau <w@1wt.eu>
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 2c2a0206566..f12d883013f 100644 --- a/kernel/kmod.c +++ b/kernel/kmod.c @@ -193,7 +193,7 @@ static int ____call_usermodehelper(void *data) /* Exec failed? */ sub_info->retval = retval; - do_exit(0); + return 0; } void call_usermodehelper_freeinfo(struct subprocess_info *info) |