Message ID | 20240206211104.26421-8-schmitzmic@gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [v3,1/8] m68k/mm: Adjust VM area to be unmapped by gap size for __iounmap() | expand |
diff --git a/arch/m68k/mm/fault.c b/arch/m68k/mm/fault.c index 6a94cdd0c830..f94df64c3784 100644 --- a/arch/m68k/mm/fault.c +++ b/arch/m68k/mm/fault.c @@ -139,8 +139,11 @@ good_area: fault = handle_mm_fault(mm, vma, address, flags); pr_debug("handle_mm_fault returns %d\n", fault); - if ((fault & VM_FAULT_RETRY) && fatal_signal_pending(current)) + if ((fault & VM_FAULT_RETRY) && fatal_signal_pending(current)) { + if (!user_mode(regs)) + goto no_context; return 0; + } if (unlikely(fault & VM_FAULT_ERROR)) { if (fault & VM_FAULT_OOM)