mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 09:31:50 +00:00
5c1642e4d2
Fix a race where a pending interrupt could be received and the handler called before the handler's data has been setup, by converting to irq_set_chained_handler_and_data(). Search and conversion was done with coccinelle: @@ expression E1, E2, E3; @@ ( -if (irq_set_chained_handler(E1, E3) != 0) - BUG(); | -irq_set_chained_handler(E1, E3); ) -irq_set_handler_data(E1, E2); +irq_set_chained_handler_and_data(E1, E3, E2); @@ expression E1, E2, E3; @@ ( -if (irq_set_chained_handler(E1, E3) != 0) - BUG(); ... | -irq_set_chained_handler(E1, E3); ... ) -irq_set_handler_data(E1, E2); +irq_set_chained_handler_and_data(E1, E3, E2); Reported-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Julia Lawall <Julia.Lawall@lip6.fr> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: Qais Yousef <qais.yousef@imgtec.com> Cc: Andrew Bresticker <abrestic@chromium.org> Cc: John Crispin <blogic@openwrt.org> Cc: linux-mips@linux-mips.org |
||
---|---|---|
.. | ||
bootrom.c | ||
cevt-rt3352.c | ||
clk.c | ||
common.h | ||
early_printk.c | ||
ill_acc.c | ||
irq.c | ||
Kconfig | ||
Makefile | ||
mt7620.c | ||
of.c | ||
Platform | ||
prom.c | ||
reset.c | ||
rt288x.c | ||
rt305x.c | ||
rt3883.c | ||
timer.c |