]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
mm, hwpoison: fixup "mm: check the return value of lookup_page_ext for all call sites"
authorMichal Hocko <mhocko@suse.com>
Fri, 24 Nov 2017 10:13:07 +0000 (11:13 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Tue, 13 Mar 2018 10:25:29 +0000 (11:25 +0100)
commit03896c7878142194a5e6c4272da646aecb40d0fd
tree1eca310072c2b4dd3079885c2847ecc9dfc004aa
parenta03b090b2dd62ed291330da66c86002c1f724a8c
mm, hwpoison: fixup "mm: check the return value of lookup_page_ext for all call sites"

BugLink: http://bugs.launchpad.net/bugs/1744870
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>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
mm/debug-pagealloc.c