projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
vm: add VM_FAULT_SIGSEGV handling support
[firefly-linux-kernel-4.4.55.git]
/
arch
/
score
/
mm
/
fault.c
diff --git
a/arch/score/mm/fault.c
b/arch/score/mm/fault.c
index 52238983527d605914853fd5415ea39617944ffe..6860beb2a280d0a4a65a67c89ad2201b33513068 100644
(file)
--- a/
arch/score/mm/fault.c
+++ b/
arch/score/mm/fault.c
@@
-114,6
+114,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();