vm: add VM_FAULT_SIGSEGV handling support
[firefly-linux-kernel-4.4.55.git] / arch / sparc / mm / fault_64.c
index 3841a081beb3967d9f2f08d0c6d1b4abf5390ff0..ac2db923e51a254a300bc9bd5686200ae4ed08bd 100644 (file)
@@ -443,6 +443,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();