ia64: fix an addr to taddr in huge_pte_offset()
[linux-2.6-microblaze.git] / arch / ia64 / mm / hugetlbpage.c
index 380d2f3..9e8960e 100644 (file)
@@ -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)) {