X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=mm%2Fmprotect.c;h=412ba2b7326a2898d25e4b0a43b3dfd921a389a1;hb=b52abf1e3b65b4fbd42b39412e040b561faec6a6;hp=a3af058f68e4d9f434337d0dcd6127d5d8c6d039;hpb=88829dfe4b6ea0c1c24d415668b3bfa78e5a5b16;p=cascardo%2Flinux.git diff --git a/mm/mprotect.c b/mm/mprotect.c index a3af058f68e4..412ba2b7326a 100644 --- a/mm/mprotect.c +++ b/mm/mprotect.c @@ -148,7 +148,7 @@ static inline unsigned long change_pmd_range(struct vm_area_struct *vma, split_huge_page_pmd(vma, addr, pmd); else if (change_huge_pmd(vma, pmd, addr, newprot, prot_numa)) { - pages += HPAGE_PMD_NR; + pages++; continue; } /* fall through */