[ARM] 4661/1: fix do_undefinstr wrt the enabling of IRQs
[deliverable/linux.git] / arch / arm / kernel / traps.c
index 4764bd9ccee801ced5838d9043a5923c9e931cb8..5a52dd7f97febbb49d7411e5a67fc830e4592c8a 100644 (file)
@@ -327,7 +327,7 @@ asmlinkage void __exception do_undefinstr(struct pt_regs *regs)
                if ((instr & hook->instr_mask) == hook->instr_val &&
                    (regs->ARM_cpsr & hook->cpsr_mask) == hook->cpsr_val) {
                        if (hook->fn(regs, instr) == 0) {
-                               spin_unlock_irq(&undef_lock);
+                               spin_unlock_irqrestore(&undef_lock, flags);
                                return;
                        }
                }
This page took 0.054907 seconds and 5 git commands to generate.