From: Fernando Luis Vázquez Cao Date: Fri, 19 Oct 2007 06:39:14 +0000 (-0700) Subject: kmap leak fix for x86_32 kdump X-Git-Tag: v2.6.24-rc1~281 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=22124c9999f00340b062fff740db30187bf18454;p=platform%2Fkernel%2Flinux-exynos.git kmap leak fix for x86_32 kdump copy_oldmem_page should not return leaving a page frame from the previous kernel mapped. Signed-off-by: Fernando Luis Vázquez Cao Acked-by: Vivek Goyal Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/x86/kernel/crash_dump_32.c b/arch/x86/kernel/crash_dump_32.c index 32e75d0..72d0c56 100644 --- a/arch/x86/kernel/crash_dump_32.c +++ b/arch/x86/kernel/crash_dump_32.c @@ -47,6 +47,7 @@ ssize_t copy_oldmem_page(unsigned long pfn, char *buf, if (!kdump_buf_page) { printk(KERN_WARNING "Kdump: Kdump buffer page not" " allocated\n"); + kunmap_atomic(vaddr, KM_PTE0); return -EFAULT; } copy_page(kdump_buf_page, vaddr);