]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/book3e: Fix PUD allocation size in map_kernel_page()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Thu, 23 Jun 2022 08:56:17 +0000 (10:56 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 24 Jun 2022 02:42:45 +0000 (12:42 +1000)
commit2f2e917c1ba142f221cc4396e127fa01b98dc01b
tree0cf1a235b90dfd788e318e588fe3d2ec77d2daab
parent617478869dc6deef71551e69aebc148bba286cba
powerpc/book3e: Fix PUD allocation size in map_kernel_page()

Commit 443d091d9576 ("powerpc: add support for folded p4d page tables")
erroneously changed PUD setup to a mix of PMD and PUD. Fix it.

While at it, use PTE_TABLE_SIZE instead of PAGE_SIZE for PTE tables
in order to avoid any confusion.

Fixes: 443d091d9576 ("powerpc: add support for folded p4d page tables")
Cc: stable@vger.kernel.org # v5.8+
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Acked-by: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/95ddfd6176d53e6c85e13bd1c358359daa56775f.1655974558.git.christophe.leroy@csgroup.eu
arch/powerpc/mm/nohash/book3e_pgtable.c