From: venkatesh.pallipadi@intel.com Date: Sat, 10 Jan 2009 00:13:09 +0000 (-0800) Subject: x86 PAT: remove PFNMAP type on track_pfn_vma_new() error X-Git-Tag: v2.6.29-rc2~84^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a36706131182f5507d1e2cfbf391b0fa8d72203c;p=pandora-kernel.git x86 PAT: remove PFNMAP type on track_pfn_vma_new() error Impact: fix (harmless) double-free of memtype entries and avoid warning On track_pfn_vma_new() failure, reset the vm_flags so that there will be no second cleanup happening when upper level routines call unmap_vmas(). This patch fixes part of the bug reported here: http://marc.info/?l=linux-kernel&m=123108883716357&w=2 Specifically the error message: X:5010 freeing invalid memtype d0000000-d0101000 Is due to multiple frees on error path, will not happen with the patch below. Signed-off-by: Venkatesh Pallipadi Signed-off-by: Suresh Siddha Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed