HWPOISON: fix oops on ksm pages
authorHugh Dickins <hugh.dickins@tiscali.co.uk>
Tue, 13 Oct 2009 14:02:11 +0000 (15:02 +0100)
committerAndi Kleen <ak@linux.intel.com>
Mon, 19 Oct 2009 05:29:20 +0000 (07:29 +0200)
commit01e00f880ca700376e1845cf7a2524ebe68e47d6
tree6e15c363298dd01dd44d5c96afd9ef36078a1247
parent4779cb31c0ee3b355116745edca3f3e5fe865553
HWPOISON: fix oops on ksm pages

Memory failure on a KSM page currently oopses on its NULL anon_vma in
page_lock_anon_vma(): that may not be much worse than the consequence
of ignoring it, but it is better to be consistent with how ZERO_PAGE
and hugetlb pages and other awkward cases are treated.  Just skip it.

Signed-off-by: Hugh Dickins <hugh.dickins@tiscali.co.uk>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
mm/memory-failure.c