]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - mm/mprotect.c
UBUNTU: Ubuntu-4.10.0-37.41
[mirror_ubuntu-zesty-kernel.git] / mm / mprotect.c
index f9c07f54dd62d928187985554695c3c1117c75a7..bccccc73080d015ba5259d04a5c313203674facf 100644 (file)
@@ -113,7 +113,7 @@ static unsigned long change_pte_range(struct vm_area_struct *vma, pmd_t *pmd,
                        ptent = ptep_modify_prot_start(mm, addr, pte);
                        ptent = pte_modify(ptent, newprot);
                        if (preserve_write)
-                               ptent = pte_mkwrite(ptent);
+                               ptent = pte_mk_savedwrite(ptent);
 
                        /* Avoid taking write faults for known dirty pages */
                        if (dirty_accountable && pte_dirty(ptent) &&