powerpc32: Fix pte_offset_kernel() to return NULL for bad pages
authorChristophe Leroy <christophe.leroy@c-s.fr>
Tue, 9 Feb 2016 16:07:56 +0000 (17:07 +0100)
committerScott Wood <oss@buserror.net>
Fri, 11 Mar 2016 23:18:02 +0000 (17:18 -0600)
commitbe00ed728c32ed8311d5191637067c9eaf0fca4b
treee911f4ee6fb96e6e9e77ea5e91f10a1345cb76cd
parent516d91893b548d7868adb9e0173a7ca307dc9c17
powerpc32: Fix pte_offset_kernel() to return NULL for bad pages

The fixmap related functions try to map kernel pages that are
already mapped through Large TLBs. pte_offset_kernel() has to
return NULL for LTLBs, otherwise the caller will try to access
level 2 table which doesn't exist

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Scott Wood <oss@buserror.net>
arch/powerpc/include/asm/nohash/32/pgtable.h