]> git.baikalelectronics.ru Git - kernel.git/commit
genirq: Uninline and sanity check generic_handle_irq()
authorThomas Gleixner <tglx@linutronix.de>
Wed, 18 May 2011 10:48:00 +0000 (12:48 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 18 May 2011 12:59:08 +0000 (14:59 +0200)
commitfbd8f45f1d912b3bc4218122cbcac19be97cc228
tree05af87563123d909d04c328aead3fe24599633d1
parent5ca0a603771c194a342b8fbe37efae276d7d626f
genirq: Uninline and sanity check generic_handle_irq()

generic_handle_irq() is missing a NULL pointer check for the result of
irq_to_desc. This was a not a big problem, but we want to expose it to
drivers, so we better have sanity checks in place. Add a return value
as well, which indicates that the irq number was valid and the handler
was invoked.

Based on the pure code move from Jonathan Cameron.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Jonathan Cameron <jic23@cam.ac.uk>
include/linux/irqdesc.h
kernel/irq/irqdesc.c