linux_dsm_epyc7002/arch/avr32/mach-at32ap
Thomas Gleixner bf54da7d3a avr32/at32ap: 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: Haavard Skinnemoen <hskinnemoen@gmail.com>
Cc: Hans-Christian Egtvedt <egtvedt@samfundet.no>
2015-06-25 11:57:52 +02:00
..
include/mach avr32: remove fake at91 cpu identification 2015-02-09 15:27:45 +01:00
at32ap700x.c dmaengine: dw: define DW_DMA_MAX_NR_MASTERS 2015-02-04 22:39:44 -08:00
clock.c
clock.h
extint.c avr32/at32ap: Fix race in installing chained IRQ handler 2015-06-25 11:57:52 +02:00
hmatrix.c
hsmc.c
hsmc.h
intc.c
intc.h
Kconfig
Makefile cpufreq: AVR32: move cpufreq driver to drivers/cpufreq 2013-04-10 13:19:25 +02:00
pdc.c
pio.c
pio.h
pm-at32ap700x.S avr32: Use generic idle loop 2013-04-08 17:39:24 +02:00
pm.c avr32: pm: Fix section mismatch 2013-12-10 08:46:38 +01:00
pm.h
sdramc.h