]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit72029b544b9699095d86ee1ced30f962e0ffa86c
tree5357d961200ba3852098254fef8fce4ea84d8733
parent38090c805fe6c12f43eedb2cf50dc34fbabf438d
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