ARC: mm: do_page_fault refactor #5: scoot no_context to end
authorVineet Gupta <vgupta@synopsys.com>
Tue, 14 May 2019 21:45:44 +0000 (14:45 -0700)
committerVineet Gupta <vgupta@synopsys.com>
Mon, 1 Jul 2019 18:02:22 +0000 (11:02 -0700)
This is different than the rest of signal handling stuff

No functional change

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/mm/fault.c

index 4597b4886eddfbb384bab612d46fc37453a4fb7c..b107e45cce9479b4d51378afd75eb9f17865de3b 100644 (file)
@@ -198,20 +198,6 @@ bad_area:
                return;
        }
 
-no_context:
-       /* Are we prepared to handle this kernel fault?
-        *
-        * (The kernel has valid exception-points in the source
-        *  when it accesses user-memory. When it fails in one
-        *  of those points, we find it in a table and do a jump
-        *  to some fixup code that loads an appropriate error
-        *  code)
-        */
-       if (fixup_exception(regs))
-               return;
-
-       die("Oops", regs, address);
-
 out_of_memory:
        up_read(&mm->mmap_sem);
 
@@ -230,4 +216,11 @@ do_sigbus:
 
        tsk->thread.fault_address = address;
        force_sig_fault(SIGBUS, BUS_ADRERR, (void __user *)address, tsk);
+       return;
+
+no_context:
+       if (fixup_exception(regs))
+               return;
+
+       die("Oops", regs, address);
 }