linux-sg2042/arch/um/kernel/skas
Jeff Dike ac2a659968 uml: fix mm_context memory leak
[ Spotted by Miklos ]

Fix a memory leak in init_new_context.  The struct page ** buffer allocated
for install_special_mapping was never recorded, and thus leaked when the
mm_struct was freed.  Fix it by saving the pointer in mm_context_t and freeing
it in arch_exit_mmap.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Cc: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-02-08 09:22:43 -08:00
..
Makefile uml: style fixes pass 3 2007-10-16 09:43:05 -07:00
clone.c uml: clone.c tidying 2008-02-05 09:44:25 -08:00
mmu.c uml: fix mm_context memory leak 2008-02-08 09:22:43 -08:00
process.c uml: kill processes instead of panicing kernel 2008-02-05 09:44:28 -08:00
syscall.c uml: redo the calculation of NR_syscalls 2008-02-05 09:44:32 -08:00
uaccess.c uml: eliminate setjmp_wrapper 2008-02-05 09:44:29 -08:00