aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mm/huge_memory.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/huge_memory.c b/mm/huge_memory.c
index a959b3a4ddd5..7742fb36eb4d 100644
--- a/mm/huge_memory.c
+++ b/mm/huge_memory.c
@@ -1273,6 +1273,7 @@ int change_huge_pmd(struct vm_area_struct *vma, pmd_t *pmd,
1273 pmd_t entry; 1273 pmd_t entry;
1274 entry = pmdp_get_and_clear(mm, addr, pmd); 1274 entry = pmdp_get_and_clear(mm, addr, pmd);
1275 entry = pmd_modify(entry, newprot); 1275 entry = pmd_modify(entry, newprot);
1276 BUG_ON(pmd_write(entry));
1276 set_pmd_at(mm, addr, pmd, entry); 1277 set_pmd_at(mm, addr, pmd, entry);
1277 spin_unlock(&vma->vm_mm->page_table_lock); 1278 spin_unlock(&vma->vm_mm->page_table_lock);
1278 ret = 1; 1279 ret = 1;