From: Jeff Dike Date: Sun, 6 May 2007 21:51:23 +0000 (-0700) Subject: uml: kernel_thread shouldn't panic X-Git-Tag: v2.6.22-rc1~862 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ccdddb57874522e6b267204f9c5e94ba7d9d66b0;p=linux-2.6-omap-h63xx.git 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 Cc: Paolo 'Blaisorblade' Giarrusso Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/um/kernel/process.c b/arch/um/kernel/process.c index 9ac9944aa2c..8d2c5496532 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) current->thread.request.u.thread.arg = arg; pid = do_fork(CLONE_VM | CLONE_UNTRACED | flags, 0, ¤t->thread.regs, 0, NULL, NULL); - if(pid < 0) - panic("do_fork failed in kernel_thread, errno = %d", pid); return pid; }