]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
m68k: Fix off-by-one in m68k_setup_user_interrupt()
authorGeert Uytterhoeven <geert@linux-m68k.org>
Fri, 14 Nov 2008 07:10:19 +0000 (08:10 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 15 Nov 2008 19:36:06 +0000 (11:36 -0800)
commit27123cbc264de89ce6951b1b4c84c223eb0f1702
tree81e4d2cab353fb1e6085850a8a9f1a41465fb944
parentfa0cfc202c4969ceed567b1567c2e5effe7fd28b
m68k: Fix off-by-one in m68k_setup_user_interrupt()

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 <schivers@csc.com.au>
Tested-by: Kars de Jong <jongk@linux-m68k.org>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: stable@kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/m68k/kernel/ints.c