aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um
diff options
context:
space:
mode:
authorJeff Dike <jdike@addtoit.com>2005-05-28 18:51:54 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-28 19:46:11 -0400
commit6770cb61ff6d557613a8382b28f9b0a919fb112f (patch)
treebc6c53e976da3c8141d99b5b9fd68d708951f5ce /arch/um
parentb9e0d0696c9e86d4e40b23039feefb8c377cb524 (diff)
[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 <jdike@addtoit.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/um')
-rw-r--r--arch/um/kernel/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/kernel/main.c b/arch/um/kernel/main.c
index a17c49703f9b..939e3b708670 100644
--- a/arch/um/kernel/main.c
+++ b/arch/um/kernel/main.c
@@ -71,7 +71,7 @@ static __init void do_uml_initcalls(void)
71 71
72static void last_ditch_exit(int sig) 72static void last_ditch_exit(int sig)
73{ 73{
74 CHOOSE_MODE(kmalloc_ok = 0, (void) 0); 74 kmalloc_ok = 0;
75 signal(SIGINT, SIG_DFL); 75 signal(SIGINT, SIG_DFL);
76 signal(SIGTERM, SIG_DFL); 76 signal(SIGTERM, SIG_DFL);
77 signal(SIGHUP, SIG_DFL); 77 signal(SIGHUP, SIG_DFL);