kernel_optimize_test/arch/um/kernel
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
..
skas uml: fix mm_context memory leak 2008-02-08 09:22:43 -08:00
asm-offsets.c
config.c.in
dyn.lds.S all archs: consolidate init and exit sections in vmlinux.lds.h 2008-01-28 23:21:17 +01:00
exec.c uml: runtime host VMSPLIT detection 2008-02-08 09:22:42 -08:00
exitcode.c uml: style fixes in arch/um/kernel 2008-02-05 09:44:30 -08:00
gmon_syms.c uml: style fixes in arch/um/kernel 2008-02-05 09:44:30 -08:00
gprof_syms.c uml: style fixes in arch/um/kernel 2008-02-05 09:44:30 -08:00
init_task.c uml: style fixes pass 1 2007-10-16 09:43:05 -07:00
initrd.c uml: install panic notifier earlier 2008-02-05 09:44:29 -08:00
irq.c uml: miscellaneous code cleanups 2008-02-05 09:44:29 -08:00
ksyms.c aout: remove unnecessary inclusions of {asm, linux}/a.out.h 2008-02-08 09:22:30 -08:00
Makefile uml: style fixes pass 1 2007-10-16 09:43:05 -07:00
mem.c CONFIG_HIGHPTE vs. sub-page page tables. 2008-02-08 09:22:42 -08:00
physmem.c uml: SMP locking commentary 2008-02-05 09:44:30 -08:00
process.c aout: suppress A.OUT library support if !CONFIG_ARCH_SUPPORTS_AOUT 2008-02-08 09:22:30 -08:00
ptrace.c spelling fixes: arch/um/ 2007-10-20 01:23:03 +02:00
reboot.c uml: style fixes in arch/um/kernel 2008-02-05 09:44:30 -08:00
sigio.c uml: style fixes in arch/um/kernel 2008-02-05 09:44:30 -08:00
signal.c uml: style fixes in arch/um/kernel 2008-02-05 09:44:30 -08:00
smp.c uml: style fixes in arch/um/kernel 2008-02-05 09:44:30 -08:00
syscall.c uml: get rid of syscall counters 2008-02-05 09:44:30 -08:00
sysrq.c uml: style fixes in arch/um/kernel 2008-02-05 09:44:30 -08:00
time.c uml: style fixes in arch/um/kernel 2008-02-05 09:44:30 -08:00
tlb.c uml: style fixes in arch/um/kernel 2008-02-05 09:44:30 -08:00
trap.c uml: kill processes instead of panicing kernel 2008-02-05 09:44:28 -08:00
uaccess.c uml: style fixes in arch/um/kernel 2008-02-05 09:44:30 -08:00
um_arch.c uml: runtime host VMSPLIT detection 2008-02-08 09:22:42 -08:00
umid.c uml: style fixes in arch/um/kernel 2008-02-05 09:44:30 -08:00
uml.lds.S all archs: consolidate init and exit sections in vmlinux.lds.h 2008-01-28 23:21:17 +01:00
vmlinux.lds.S