powerpc/mm/hugetlb: Fix kernel crash if we fail to allocate page table caches
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Tue, 28 May 2019 05:36:25 +0000 (11:06 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 4 Jul 2019 14:48:00 +0000 (00:48 +1000)
commit5d49275a27310233964fc3edc8dd097a094ce338
tree4b792dec2affcd9e58e2bf9b63afbe0f7209accd
parent2230ebf6e6dd0b7751e2921b40f6cfe34f09bb16
powerpc/mm/hugetlb: Fix kernel crash if we fail to allocate page table caches

We only check for hugetlb allocations, because with hugetlb we do conditional
registration. For PGD/PUD/PMD levels we register them always in
pgtable_cache_init.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/hugetlbpage.c