]> err.no Git - linux-2.6/commitdiff
[PATCH] uml: turn off kmalloc always on a fatal signal
authorJeff Dike <jdike@addtoit.com>
Sat, 28 May 2005 22:51:54 +0000 (15:51 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 28 May 2005 23:46:11 +0000 (16:46 -0700)
We should turn off kmalloc when getting a fatal signal regardless of the mode
we're in.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/um/kernel/main.c

index a17c49703f9bd2513af8eef1eae001dc4fd11a52..939e3b7086705d26f1150fce6c57bc6770ab1c5a 100644 (file)
@@ -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);