[ARM] 5560/1: Avoid buffer overrun in case of an invalid IRQ
commit7aa5514e7170c6179272bc638a980adc1738fd29
authorAaro Koskinen <aaro.koskinen@nokia.com>
Mon, 22 Jun 2009 08:23:36 +0000 (22 09:23 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 25 Jun 2009 13:00:59 +0000 (25 14:00 +0100)
tree733f227356acbfaa6fdaa16ddcd5368f726b2c8d
parent8fd3ec6309dc3c8b6addc9015458bfae87592a1f
[ARM] 5560/1: Avoid buffer overrun in case of an invalid IRQ

handle_bad_irq() expects the IRQ number to be valid (used for statistics),
so it cannot be called with an illegal vector. The problem was reported
by a static analysis tool.

The change makes bad_irq_desc redundant, so delete it.

Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/irq.c