Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54011
b: refs/heads/master
c: 99cce8f
h: refs/heads/master
i:
  54009: e464f16
  54007: 1cebda4
v: v3
  • Loading branch information
Dan Williams authored and Russell King committed May 3, 2007
1 parent db8eddc commit d5696bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f16fb1ecc5a1cb2f7cc595179d1fe55e711e599f
refs/heads/master: 99cce8f7b10716f8fdbaca21a7f3ba000119ad3b
5 changes: 3 additions & 2 deletions trunk/arch/arm/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ asmlinkage void __exception do_undefinstr(struct pt_regs *regs)
struct undef_hook *hook;
siginfo_t info;
void __user *pc;
unsigned long flags;

/*
* According to the ARM ARM, PC is 2 or 4 bytes ahead,
Expand All @@ -304,7 +305,7 @@ asmlinkage void __exception do_undefinstr(struct pt_regs *regs)
get_user(instr, (u32 __user *)pc);
}

spin_lock_irq(&undef_lock);
spin_lock_irqsave(&undef_lock, flags);
list_for_each_entry(hook, &undef_hook, node) {
if ((instr & hook->instr_mask) == hook->instr_val &&
(regs->ARM_cpsr & hook->cpsr_mask) == hook->cpsr_val) {
Expand All @@ -314,7 +315,7 @@ asmlinkage void __exception do_undefinstr(struct pt_regs *regs)
}
}
}
spin_unlock_irq(&undef_lock);
spin_unlock_irqrestore(&undef_lock, flags);

#ifdef CONFIG_DEBUG_USER
if (user_debug & UDBG_UNDEFINED) {
Expand Down

0 comments on commit d5696bd

Please sign in to comment.