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: MMI-PSA29.97-13-9~38890 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=22124c9999f00340b062fff740db30187bf18454;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.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 32e75d0731a9..72d0c56c1b48 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);