acrn-kernel/arch/um
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
..
drivers uml: make mconsole_stack namespace-aware 2008-02-05 09:44:32 -08:00
include uml: fix mm_context memory leak 2008-02-08 09:22:43 -08:00
kernel uml: fix mm_context memory leak 2008-02-08 09:22:43 -08:00
os-Linux uml: improved error handling while locating temp dir 2008-02-08 09:22:43 -08:00
scripts
sys-i386 uml: redo the calculation of NR_syscalls 2008-02-05 09:44:32 -08:00
sys-ia64
sys-ppc uml: remove TOPDIR 2008-02-05 09:44:31 -08:00
sys-x86_64 uml: redo the calculation of NR_syscalls 2008-02-05 09:44:32 -08:00
Kconfig uml: runtime host VMSPLIT detection 2008-02-08 09:22:42 -08:00
Kconfig.char
Kconfig.debug
Kconfig.i386 uml: runtime host VMSPLIT detection 2008-02-08 09:22:42 -08:00
Kconfig.net
Kconfig.x86_64 uml: runtime host VMSPLIT detection 2008-02-08 09:22:42 -08:00
Makefile uml: runtime host VMSPLIT detection 2008-02-08 09:22:42 -08:00
Makefile-i386
Makefile-ia64
Makefile-os-Linux
Makefile-ppc
Makefile-skas
Makefile-x86_64
defconfig uml: runtime host VMSPLIT detection 2008-02-08 09:22:42 -08:00