mm, hwpoison: fixup "mm: check the return value of lookup_page_ext for all call sites"
commit0208fabf7256245125fbabf03207a0da4000ea2d
authorMichal Hocko <mhocko@suse.com>
Fri, 24 Nov 2017 10:13:07 +0000 (24 11:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Nov 2017 10:26:29 +0000 (24 11:26 +0100)
tree9921888d7dd6c9250dea8101ed6df081666416d1
parent5baf0fb260fc59d632ba150f442a5904650d6170
mm, hwpoison: fixup "mm: check the return value of lookup_page_ext for all call sites"

Backport of the upstream commit f86e4271978b ("mm: check the return
value of lookup_page_ext for all call sites") is wrong for hwpoison
pages. I have accidentally negated the condition for bailout. This
basically disables hwpoison pages tracking while the code still
might crash on unusual configurations when struct pages do not have
page_ext allocated. The fix is trivial to invert the condition.

Reported-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Michal Hocko <mhocko@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
mm/debug-pagealloc.c