diff --git a/mm/memory.c b/mm/memory.c index 70384a99bfcf..1b768d29f9d2 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -4199,9 +4199,12 @@ vm_fault_t finish_fault(struct vm_fault *vmf) } } - /* See comment in handle_pte_fault() */ + /* + * See comment in handle_pte_fault() for how this scenario happens, we + * need to return NOPAGE so that we drop this page. + */ if (pmd_devmap_trans_unstable(vmf->pmd)) - return 0; + return VM_FAULT_NOPAGE; if (!pte_map_lock(vmf)) return VM_FAULT_RETRY;