]> err.no Git - linux-2.6/commit
[PATCH] uml: always disable kmalloc during shutdown
authorJeff Dike <jdike@addtoit.com>
Sat, 25 Jun 2005 21:55:23 +0000 (14:55 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 25 Jun 2005 23:24:35 +0000 (16:24 -0700)
commit026549d28469f7d4ca7e5a4707f0d2dc4f2c164c
treec616d69c9f70c9fdecae42a3d97009572cc82e07
parenta6f4e3cf75538a75ee4fab620e3c8466f2154458
[PATCH] uml: always disable kmalloc during shutdown

kmalloc wasn't being disabled during panic.  This patch ensures that, no
matter how UML is exiting, it is disabled.  This matters because part of the
cleanup is to remove the umid file, which involves readdir, which calls
malloc.  This must map to libc malloc, rather than kmalloc or vmalloc.

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