summaryrefslogtreecommitdiff
path: root/arch/metag/mm/fault.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/metag/mm/fault.c')
-rw-r--r--arch/metag/mm/fault.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/metag/mm/fault.c b/arch/metag/mm/fault.c
index 332680e5ebf2..2de5dc695a87 100644
--- a/arch/metag/mm/fault.c
+++ b/arch/metag/mm/fault.c
@@ -141,6 +141,8 @@ good_area:
if (unlikely(fault & VM_FAULT_ERROR)) {
if (fault & VM_FAULT_OOM)
goto out_of_memory;
+ else if (fault & VM_FAULT_SIGSEGV)
+ goto bad_area;
else if (fault & VM_FAULT_SIGBUS)
goto do_sigbus;
BUG();