From: Jeff Dike 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 --- arch/um/kernel/process.c | 2 -- 1 files changed, 2 deletions(-) diff -puN arch/um/kernel/process.c~uml-kernel_thread-shouldnt-panic arch/um/kernel/process.c --- a/arch/um/kernel/process.c~uml-kernel_thread-shouldnt-panic +++ a/arch/um/kernel/process.c @@ -97,8 +97,6 @@ int kernel_thread(int (*fn)(void *), voi 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; } _