Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=aeb747afb3fb1f42d9c82615a103882f7f97f291
Commit:     aeb747afb3fb1f42d9c82615a103882f7f97f291
Parent:     dc49cb21801db1f89d74b01a0f38f200aebb3e43
Author:     Nicolas Pitre <[EMAIL PROTECTED]>
AuthorDate: Thu Nov 22 17:21:27 2007 +0100
Committer:  Russell King <[EMAIL PROTECTED]>
CommitDate: Mon Nov 26 19:43:42 2007 +0000

    [ARM] 4661/1: fix do_undefinstr wrt the enabling of IRQs
    
    The lock is acquired with spin_lock_irqsave() and released in the
    not-found case with spin_unlock_irqrestore().
    
    Signed-off-by: Nicolas Pitre <[EMAIL PROTECTED]>
    Signed-off-by: Russell King <[EMAIL PROTECTED]>
---
 arch/arm/kernel/traps.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/kernel/traps.c b/arch/arm/kernel/traps.c
index 4764bd9..5a52dd7 100644
--- a/arch/arm/kernel/traps.c
+++ b/arch/arm/kernel/traps.c
@@ -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;
                        }
                }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to