summaryrefslogtreecommitdiffstats
path: root/arch/m68k/mm
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2022-01-28 18:30:06 +0100
committerGeert Uytterhoeven <geert@linux-m68k.org>2022-02-21 12:00:20 +0100
commitc4d5b6eef2581dd893bea4edb374e480e5a90ce6 (patch)
treead91c7225c16966c2dc05b3352f04710055d623b /arch/m68k/mm
parentm68k: Add asm/config.h (diff)
downloadlinux-c4d5b6eef2581dd893bea4edb374e480e5a90ce6.tar.xz
linux-c4d5b6eef2581dd893bea4edb374e480e5a90ce6.zip
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
Diffstat (limited to 'arch/m68k/mm')
-rw-r--r--arch/m68k/mm/fault.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/m68k/mm/fault.c b/arch/m68k/mm/fault.c
index 1493cf5eac1e..71aa9f6315dc 100644
--- a/arch/m68k/mm/fault.c
+++ b/arch/m68k/mm/fault.c
@@ -93,8 +93,6 @@ retry:
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))