diff options
author | Wang Kefeng <wangkefeng.wang@huawei.com> | 2022-09-13 07:25:51 +0300 |
---|---|---|
committer | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2022-09-22 10:29:03 +0300 |
commit | 2ccd19b3ffac07cc7e75a2bd1ed779728bb67197 (patch) | |
tree | d42c9b702c04b06a70827017adbf53dba85033ef /arch/arm/mm | |
parent | 32844a8eecaa4a3e65841c53e43e04a9087d1ef6 (diff) | |
download | linux-2ccd19b3ffac07cc7e75a2bd1ed779728bb67197.tar.xz |
ARM: 9244/1: dump: Fix wrong pg_level in walk_pmd()
After ARM supports p4d page tables, the pg_level for note_page()
in walk_pmd() should be 4, not 3, fix it.
Fixes: 84e6ffb2c49c ("arm: add support for folded p4d page tables")
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/arm/mm')
-rw-r--r-- | arch/arm/mm/dump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mm/dump.c b/arch/arm/mm/dump.c index fb688003d156..712da6a81b23 100644 --- a/arch/arm/mm/dump.c +++ b/arch/arm/mm/dump.c @@ -346,7 +346,7 @@ static void walk_pmd(struct pg_state *st, pud_t *pud, unsigned long start) addr = start + i * PMD_SIZE; domain = get_domain_name(pmd); if (pmd_none(*pmd) || pmd_large(*pmd) || !pmd_present(*pmd)) - note_page(st, addr, 3, pmd_val(*pmd), domain); + note_page(st, addr, 4, pmd_val(*pmd), domain); else walk_pte(st, pmd, addr, domain); |