Files
android_kernel_xiaomi_sm8450/arch/powerpc/kernel
Milton Miller 2e455257d1 powerpc/irq: Check desc in handle_one_irq and expand generic_handle_irq
Look up the descriptor and check that it is found in handle_one_irq
before checking if we are on the irq stack, and call the handler
directly using the descriptor if we are on the stack.

We need check irq_to_desc finds the descriptor to avoid a NULL
pointer dereference.  It could have failed because the number from
ppc_md.get_irq was above NR_IRQS, or various exceptional conditions
with sparse irqs (eg race conditions while freeing an irq if its was
not shutdown in the controller).

fe12bc2c99 (genirq: Uninline and sanity check generic_handle_irq())
moved generic_handle_irq out of line to allow its use by interrupt
controllers in modules.  However, handle_one_irq is core arch code.
It already knows the details of struct irq_desc and handling irqs in
the nested irq case.  This will avoid the extra stack frame to return
the value we don't check.

Signed-off-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2011-05-26 13:38:59 +10:00
..
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-04-27 13:02:02 +10:00
2011-03-30 10:44:00 +11:00
2011-05-19 17:32:29 +10:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-05-20 16:23:19 -07:00
2010-10-05 17:27:54 -07:00
2011-03-31 11:26:23 -03:00
2011-05-25 08:39:13 -07:00
2011-05-20 17:50:18 +10:00
2010-12-09 15:35:32 +11:00
2011-03-31 11:26:23 -03:00
2011-04-27 14:18:44 +10:00
2010-09-22 09:33:50 -07:00
2011-05-26 13:38:58 +10:00
2010-07-19 10:56:54 +02:00
2011-03-31 11:26:23 -03:00
2010-03-12 15:52:32 -08:00