linux/arch/mips/ath25
Thomas Gleixner 08ece35e7d MIPS/ath25: Fix race in installing chained IRQ handler
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: Sergey Ryazanov <ryazanov.s.a@gmail.com>
Cc: linux-mips@linux-mips.org
2015-06-25 11:57:57 +02:00
..
ar2315_regs.h MIPS: ath25: add interrupts handling routines 2014-11-24 07:45:27 +01:00
ar2315.c MIPS/ath25: Fix race in installing chained IRQ handler 2015-06-25 11:57:56 +02:00
ar2315.h MIPS: ath25: add board configuration detection 2014-11-24 07:45:27 +01:00
ar5312_regs.h MIPS: ath25: add interrupts handling routines 2014-11-24 07:45:27 +01:00
ar5312.c MIPS/ath25: Fix race in installing chained IRQ handler 2015-06-25 11:57:57 +02:00
ar5312.h MIPS: ath25: add board configuration detection 2014-11-24 07:45:27 +01:00
board.c MIPS: ath25: add board configuration detection 2014-11-24 07:45:27 +01:00
devices.c MIPS: ath25: add Wireless device support 2014-11-24 07:45:29 +01:00
devices.h MIPS: ath25: add Wireless device support 2014-11-24 07:45:29 +01:00
early_printk.c MIPS: ath25: add early printk support 2014-11-24 07:45:27 +01:00
Kconfig MIPS: ath25: add AR2315 PCI host controller driver 2014-11-24 07:45:28 +01:00
Makefile MIPS: ath25: add early printk support 2014-11-24 07:45:27 +01:00
Platform
prom.c