Skip to content

Commit

Permalink
[MIPS] Malta: Fix off by one bug in interrupt handler.
Browse files Browse the repository at this point in the history
Fairly cosmetic as it would only affect VSMP / SMTC kernels that don't
use vectored interrupts.

Found by Beth.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
ralfbaechle committed Sep 14, 2007
1 parent 6440fcf commit 48d480b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/mips-boards/malta/malta_int.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ asmlinkage void plat_irq_dispatch(void)

if (irq == MIPSCPU_INT_I8259A)
malta_hw0_irqdispatch();
else if (irq > 0)
else if (irq >= 0)
do_IRQ(MIPS_CPU_IRQ_BASE + irq);
else
spurious_interrupt();
Expand Down

0 comments on commit 48d480b

Please sign in to comment.