mirror of
https://github.com/torvalds/linux.git
synced 2026-05-22 22:22:08 +02:00
m68k: mm: Remove check for VM_IO to fix deferred I/O
When an application accesses a mapped frame buffer backed by deferred I/O, it receives a segmentation fault. Fix this by removing the check for VM_IO in do_page_fault(). Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Tested-by: Michael Schmitz <schmitzmic@gmail.com> Link: https://lore.kernel.org/r/20220128173006.1713210-1-geert@linux-m68k.org
This commit is contained in:
parent
91d7b75a58
commit
c4d5b6eef2
|
|
@ -93,8 +93,6 @@ int do_page_fault(struct pt_regs *regs, unsigned long address,
|
|||
vma = find_vma(mm, address);
|
||||
if (!vma)
|
||||
goto map_err;
|
||||
if (vma->vm_flags & VM_IO)
|
||||
goto acc_err;
|
||||
if (vma->vm_start <= address)
|
||||
goto good_area;
|
||||
if (!(vma->vm_flags & VM_GROWSDOWN))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user