Skip to content

Commit

Permalink
[PATCH] uml: turn off kmalloc always on a fatal signal
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jeff Dike authored and Linus Torvalds committed May 28, 2005
1 parent b9e0d06 commit 6770cb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/um/kernel/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6770cb6

Please sign in to comment.