genirq: Warn if enable_irq is called before irq is set up
authorThomas Gleixner <tglx@linutronix.de>
Fri, 22 Oct 2010 12:47:57 +0000 (14:47 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 22 Oct 2010 14:10:29 +0000 (16:10 +0200)
commit2656c36699677238edc9ec1fea79039f1fddbcb6
tree4fd8b68709598b5c581b3792ad2fc7481be76e12
parentd4429f608abde89e8bc1e24b43cd503feb95c496
genirq: Warn if enable_irq is called before irq is set up

The recent changes in the genirq core unearthed a bug in arch/um which
called enable_irq() before the interrupt was set up.

Warn and return instead of crashing the machine with a NULL pointer
dereference.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Richard Weinberger <richard@nod.at>
kernel/irq/manage.c