From: Kirill A. Shutemov Date: Mon, 13 Mar 2017 05:22:13 +0000 (+0300) Subject: mm, gup: fix typo in gup_p4d_range() X-Git-Tag: v5.15~11683 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ce70df089143c49385b4f32f39d41fb50fbf6a7c;p=platform%2Fkernel%2Flinux-starfive.git mm, gup: fix typo in gup_p4d_range() gup_p4d_range() should call gup_pud_range(), not itself. [ This was not noticed on x86: this is the HAVE_GENERIC_RCU_GUP code used by arm[64] and powerpc - Linus ] Fixes: c2febafc6773 ("mm: convert generic code to 5-level paging") Signed-off-by: Kirill A. Shutemov Reported-by: Chris Packham Reported-by: Anton Blanchard Acked-by: Michal Hocko Acked-by: Mark Rutland Signed-off-by: Linus Torvalds --- diff --git a/mm/gup.c b/mm/gup.c index c74bad1..04aa405 100644 --- a/mm/gup.c +++ b/mm/gup.c @@ -1455,7 +1455,7 @@ static int gup_p4d_range(pgd_t pgd, unsigned long addr, unsigned long end, if (!gup_huge_pd(__hugepd(p4d_val(p4d)), addr, P4D_SHIFT, next, write, pages, nr)) return 0; - } else if (!gup_p4d_range(p4d, addr, next, write, pages, nr)) + } else if (!gup_pud_range(p4d, addr, next, write, pages, nr)) return 0; } while (p4dp++, addr = next, addr != end);