vm: add VM_FAULT_SIGSEGV handling support
[pandora-kernel.git] / arch / um / kernel / trap.c
index dafc947..f79ffc9 100644 (file)
@@ -69,6 +69,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 out;
                        } else if (fault & VM_FAULT_SIGBUS) {
                                err = -EACCES;
                                goto out;