diff options
| author | Oleg Nesterov <oleg@redhat.com> | 2012-03-23 18:02:49 -0400 |
|---|---|---|
| committer | Luis Henriques <luis.henriques@canonical.com> | 2012-04-05 11:17:14 -0400 |
| commit | 18d8b23e86faed96fe336cbac1487b6b66a5d4bb (patch) | |
| tree | 2e31dd3ebcb1cbbfe51b885082f946ec51e31960 /kernel | |
| parent | 322f5cfdfdcf001f8e9f53a6342ead60e9a6d077 (diff) | |
usermodehelper: ____call_usermodehelper() doesn't need do_exit()
BugLink: http://bugs.launchpad.net/bugs/963685
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>
(cherry picked from commit 5b9bd473e3b8a8c6c4ae99be475e6e9b27568555)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Andy Whitcroft <andy.whitcroft@canonical.com>
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 8a65e7886f4..2cca9ee91e7 100644 --- a/kernel/kmod.c +++ b/kernel/kmod.c | |||
| @@ -186,7 +186,7 @@ static int ____call_usermodehelper(void *data) | |||
| 186 | /* Exec failed? */ | 186 | /* Exec failed? */ |
| 187 | fail: | 187 | fail: |
| 188 | sub_info->retval = retval; | 188 | sub_info->retval = retval; |
| 189 | do_exit(0); | 189 | return 0; |
| 190 | } | 190 | } |
| 191 | 191 | ||
| 192 | void call_usermodehelper_freeinfo(struct subprocess_info *info) | 192 | void call_usermodehelper_freeinfo(struct subprocess_info *info) |
