diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/mprotect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/mprotect.c b/mm/mprotect.c index 94722a4d6b43..2bbb648ea73f 100644 --- a/mm/mprotect.c +++ b/mm/mprotect.c | |||
@@ -145,7 +145,7 @@ static inline unsigned long change_pmd_range(struct vm_area_struct *vma, | |||
145 | split_huge_page_pmd(vma, addr, pmd); | 145 | split_huge_page_pmd(vma, addr, pmd); |
146 | else if (change_huge_pmd(vma, pmd, addr, newprot, | 146 | else if (change_huge_pmd(vma, pmd, addr, newprot, |
147 | prot_numa)) { | 147 | prot_numa)) { |
148 | pages += HPAGE_PMD_NR; | 148 | pages++; |
149 | continue; | 149 | continue; |
150 | } | 150 | } |
151 | /* fall through */ | 151 | /* fall through */ |