]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
powerpc/mm/radix: Free PUD table when freeing pagetable
authorBharata B Rao <bharata@linux.ibm.com>
Thu, 9 Jul 2020 13:19:23 +0000 (18:49 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 20 Jul 2020 12:57:56 +0000 (22:57 +1000)
commit9ce8853b4a735c8115f55ac0e9c2b27a4c8f80b5
tree250c57887ea68240d00b3500088bf868d91fef23
parent645d5ce2f7d6cb4dcf6a4e087fb550e238d24283
powerpc/mm/radix: Free PUD table when freeing pagetable

remove_pagetable() isn't freeing PUD table. This causes memory
leak during memory unplug. Fix this.

Fixes: 4b5d62ca17a1 ("powerpc/mm: add radix__remove_section_mapping()")
Signed-off-by: Bharata B Rao <bharata@linux.ibm.com>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200709131925.922266-3-aneesh.kumar@linux.ibm.com
arch/powerpc/mm/book3s64/radix_pgtable.c