x86, PAT: Handle faults cleanly in set_memory_ APIs
authorvenkatesh.pallipadi@intel.com <venkatesh.pallipadi@intel.com>
Thu, 9 Apr 2009 21:26:49 +0000 (14:26 -0700)
committerIngo Molnar <mingo@elte.hu>
Fri, 10 Apr 2009 11:55:47 +0000 (13:55 +0200)
commit9fa3ab390abfc8b49fc0dd7c845b0ad224ec429f
tree5357d961200ba3852098254fef8fce4ea84d8733
parenta5593e0b329a14dea41ea173380dbf1533de2bd2
x86, PAT: Handle faults cleanly in set_memory_ APIs

Handle faults and do proper cleanups in set_memory_*() functions. In
some cases, these functions were not doing proper free on failure paths.

With the changes to tracking memtype of RAM pages in struct page instead
of pat list, we do not need the changes in commits c5e147. This patch
reverts that change.

Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
LKML-Reference: <20090409212708.653222000@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/pageattr.c