projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa0cfc2
)
m68k: Fix off-by-one in m68k_setup_user_interrupt()
author
Geert Uytterhoeven
<
[email protected]
>
Fri, 14 Nov 2008 07:10:19 +0000
(08:10 +0100)
committer
Linus Torvalds
<
[email protected]
>
Sat, 15 Nov 2008 19:36:06 +0000
(11:36 -0800)
commit
69961c375288bdab7604e0bb1c8d22999bb8a347
("[PATCH] m68k/Atari:
Interrupt updates") added a BUG_ON() with an incorrect upper bound
comparison, which causes an early crash on VME boards, where IRQ_USER is
8, cnt is 192 and NR_IRQS is 200.
Reported-by: Stephen N Chivers <
[email protected]
>
Tested-by: Kars de Jong <
[email protected]
>
Signed-off-by: Geert Uytterhoeven <
[email protected]
>
Cc:
[email protected]
Signed-off-by: Linus Torvalds <
[email protected]
>
arch/m68k/kernel/ints.c
patch
|
blob
|
history
diff --git
a/arch/m68k/kernel/ints.c
b/arch/m68k/kernel/ints.c
index 7e8a0d394e6184cbf63a5fb257befa4082ce0148..761ee0440c996a29d4fe784f56571e2cab3358ee 100644
(file)
--- a/
arch/m68k/kernel/ints.c
+++ b/
arch/m68k/kernel/ints.c
@@
-133,7
+133,7
@@
void __init m68k_setup_user_interrupt(unsigned int vec, unsigned int cnt,
{
int i;
- BUG_ON(IRQ_USER + cnt >
=
NR_IRQS);
+ BUG_ON(IRQ_USER + cnt > NR_IRQS);
m68k_first_user_vec = vec;
for (i = 0; i < cnt; i++)
irq_controller[IRQ_USER + i] = &user_irq_controller;