parisc: Fix kernel crash with reversed copy_from_user()
[pandora-kernel.git] / arch / parisc / kernel / traps.c
index cd8b02f..73102ea 100644 (file)
@@ -817,6 +817,9 @@ void notrace handle_interruption(int code, struct pt_regs *regs)
 
            if (fault_space == 0 && !in_atomic())
            {
+               /* Clean up and return if in exception table. */
+               if (fixup_exception(regs))
+                       return;
                pdc_chassis_send_status(PDC_CHASSIS_DIRECT_PANIC);
                parisc_terminate("Kernel Fault", regs, code, fault_address);
            }