Skip to content

Commit 3647ebc

Browse files
Hugh Dickinsakpm00
authored andcommitted
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/732eae88-3beb-246-2c72-281de786740@google.com Fixes: c03ab9e ("ia64: add support for folded p4d page tables") Signed-off-by: Hugh Dickins <hughd@google.com Acked-by: Mike Kravetz <mike.kravetz@oracle.com> Acked-by: Mike Rapoport (IBM) <rppt@kernel.org> Cc: Ard Biesheuvel <ardb@kernel.org> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent a04bb4c commit 3647ebc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/ia64/mm/hugetlbpage.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ huge_pte_offset (struct mm_struct *mm, unsigned long addr, unsigned long sz)
5858

5959
pgd = pgd_offset(mm, taddr);
6060
if (pgd_present(*pgd)) {
61-
p4d = p4d_offset(pgd, addr);
61+
p4d = p4d_offset(pgd, taddr);
6262
if (p4d_present(*p4d)) {
6363
pud = pud_offset(p4d, taddr);
6464
if (pud_present(*pud)) {

0 commit comments

Comments
 (0)