Merge tag 'i3c/for-6.6' of git://git.kernel.org/pub/scm/linux/kernel/git/i3c/linux
[platform/kernel/linux-starfive.git] / mm / userfaultfd.c
index 0fc69ef..96d9eae 100644 (file)
@@ -86,7 +86,7 @@ int mfill_atomic_install_pte(pmd_t *dst_pmd,
        if (page_in_cache && !vm_shared)
                writable = false;
        if (writable)
-               _dst_pte = pte_mkwrite(_dst_pte);
+               _dst_pte = pte_mkwrite(_dst_pte, dst_vma);
        if (flags & MFILL_ATOMIC_WP)
                _dst_pte = pte_mkuffd_wp(_dst_pte);