From: Jeff Dike Date: Sat, 28 May 2005 22:51:54 +0000 (-0700) Subject: [PATCH] uml: turn off kmalloc always on a fatal signal X-Git-Tag: v2.6.12-rc6~115 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6770cb61ff6d557613a8382b28f9b0a919fb112f;p=linux-2.6 [PATCH] uml: turn off kmalloc always on a fatal signal We should turn off kmalloc when getting a fatal signal regardless of the mode we're in. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/um/kernel/main.c b/arch/um/kernel/main.c index a17c49703f..939e3b7086 100644 --- a/arch/um/kernel/main.c +++ b/arch/um/kernel/main.c @@ -71,7 +71,7 @@ static __init void do_uml_initcalls(void) static void last_ditch_exit(int sig) { - CHOOSE_MODE(kmalloc_ok = 0, (void) 0); + kmalloc_ok = 0; signal(SIGINT, SIG_DFL); signal(SIGTERM, SIG_DFL); signal(SIGHUP, SIG_DFL);