Skip to content

Commit 2ccd19b

Browse files
Wang KefengRussell King (Oracle)
authored andcommitted
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: 84e6ffb ("arm: add support for folded p4d page tables") Signed-off-by: Kefeng Wang <[email protected]> Signed-off-by: Russell King (Oracle) <[email protected]>
1 parent 32844a8 commit 2ccd19b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm/mm/dump.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ static void walk_pmd(struct pg_state *st, pud_t *pud, unsigned long start)
346346
addr = start + i * PMD_SIZE;
347347
domain = get_domain_name(pmd);
348348
if (pmd_none(*pmd) || pmd_large(*pmd) || !pmd_present(*pmd))
349-
note_page(st, addr, 3, pmd_val(*pmd), domain);
349+
note_page(st, addr, 4, pmd_val(*pmd), domain);
350350
else
351351
walk_pte(st, pmd, addr, domain);
352352

0 commit comments

Comments
 (0)