diff options
author | Jeff Dike <jdike@addtoit.com> | 2007-05-06 17:51:23 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-07 15:13:02 -0400 |
commit | ccdddb57874522e6b267204f9c5e94ba7d9d66b0 (patch) | |
tree | 87393f6e7126564c6805868a2b980730ac246898 | |
parent | 1ffb9164f51094b7105ce9f81600b222ddf5b82c (diff) |
uml: kernel_thread shouldn't panic
kernel_thread() should just return an error value on do_fork failure, not
panic.
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | arch/um/kernel/process.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/um/kernel/process.c b/arch/um/kernel/process.c index 9ac9944aa2c7..8d2c5496532b 100644 --- a/arch/um/kernel/process.c +++ b/arch/um/kernel/process.c | |||
@@ -97,8 +97,6 @@ int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags) | |||
97 | current->thread.request.u.thread.arg = arg; | 97 | current->thread.request.u.thread.arg = arg; |
98 | pid = do_fork(CLONE_VM | CLONE_UNTRACED | flags, 0, | 98 | pid = do_fork(CLONE_VM | CLONE_UNTRACED | flags, 0, |
99 | ¤t->thread.regs, 0, NULL, NULL); | 99 | ¤t->thread.regs, 0, NULL, NULL); |
100 | if(pid < 0) | ||
101 | panic("do_fork failed in kernel_thread, errno = %d", pid); | ||
102 | return pid; | 100 | return pid; |
103 | } | 101 | } |
104 | 102 | ||