diff options
| author | Hugh Dickins <[email protected]> | 2023-04-16 22:17:05 -0700 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-04-21 14:54:34 -0700 |
| commit | 3647ebcfbfca384840231fe13fae665453238a61 (patch) | |
| tree | 5416e358a88e0da823b4dada99520ccf87c6ae85 | |
| parent | a04bb4c24a4846232a81047784d5eff2848e45bd (diff) | |
ia64: fix an addr to taddr in huge_pte_offset()
I know nothing of ia64 htlbpage_to_page(), but guess that the p4d
line should be using taddr rather than addr, like everywhere else.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: c03ab9e32a2c ("ia64: add support for folded p4d page tables")
Signed-off-by: Hugh Dickins <[email protected]
Acked-by: Mike Kravetz <[email protected]>
Acked-by: Mike Rapoport (IBM) <[email protected]>
Cc: Ard Biesheuvel <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
| -rw-r--r-- | arch/ia64/mm/hugetlbpage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/ia64/mm/hugetlbpage.c b/arch/ia64/mm/hugetlbpage.c index 380d2f3966c9..9e8960e49962 100644 --- a/arch/ia64/mm/hugetlbpage.c +++ b/arch/ia64/mm/hugetlbpage.c @@ -58,7 +58,7 @@ huge_pte_offset (struct mm_struct *mm, unsigned long addr, unsigned long sz) pgd = pgd_offset(mm, taddr); if (pgd_present(*pgd)) { - p4d = p4d_offset(pgd, addr); + p4d = p4d_offset(pgd, taddr); if (p4d_present(*p4d)) { pud = pud_offset(p4d, taddr); if (pud_present(*pud)) { |