powerpc/mm/32: Fix pgtable_page_dtor call
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Mon, 25 Jun 2018 08:15:09 +0000 (13:45 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 26 Jun 2018 13:43:14 +0000 (23:43 +1000)
commit941c06d58503b9f2718b20bc45ee7f1d701a1e1e
treeaa09401274f7fb7fe305cc910192fbda753a0685
parentb2f82565f2caa1a5c1a26e68593eaef355fae3f4
powerpc/mm/32: Fix pgtable_page_dtor call

Commit 667416f38554 ("powerpc/mm: Fix kernel crash on page table free")
added a call for pgtable_page_dtor in the rcu page table free routine. We missed
the fact that for 32 bit platforms we did call the 'dtor' early. Drop the extra
call for pgtable_page_dtor. We remove the call from __pte_free_tlb so that we
do the page table free and 'dtor' call together. This should help when we
switch these platforms to pte fragments.

Fixes: 667416f38554 ("powerpc/mm: Fix kernel crash on page table free")
Reported-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/book3s/32/pgalloc.h
arch/powerpc/include/asm/nohash/32/pgalloc.h