aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mm/mprotect.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/mprotect.c b/mm/mprotect.c
index 2bbb648ea73f..7bdbd4b0f6d9 100644
--- a/mm/mprotect.c
+++ b/mm/mprotect.c
@@ -101,8 +101,9 @@ static unsigned long change_pte_range(struct vm_area_struct *vma, pmd_t *pmd,
101 make_migration_entry_read(&entry); 101 make_migration_entry_read(&entry);
102 set_pte_at(mm, addr, pte, 102 set_pte_at(mm, addr, pte,
103 swp_entry_to_pte(entry)); 103 swp_entry_to_pte(entry));
104
105 pages++;
104 } 106 }
105 pages++;
106 } 107 }
107 } while (pte++, addr += PAGE_SIZE, addr != end); 108 } while (pte++, addr += PAGE_SIZE, addr != end);
108 arch_leave_lazy_mmu_mode(); 109 arch_leave_lazy_mmu_mode();