Skip to content

Commit c4d5b6e

Browse files
committed
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
1 parent 91d7b75 commit c4d5b6e

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

arch/m68k/mm/fault.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,6 @@ int do_page_fault(struct pt_regs *regs, unsigned long address,
9393
vma = find_vma(mm, address);
9494
if (!vma)
9595
goto map_err;
96-
if (vma->vm_flags & VM_IO)
97-
goto acc_err;
9896
if (vma->vm_start <= address)
9997
goto good_area;
10098
if (!(vma->vm_flags & VM_GROWSDOWN))

0 commit comments

Comments
 (0)