mirror-linux/arch/powerpc/platforms/52xx
Chen Ni 7593721cd7 powerpc/52xx/mpc52xx_gpt: consolidate chained IRQ handler install/remove
The driver currently sets the handler data and the chained handler in
two separate steps. This creates a theoretical race window where an
interrupt could fire after the handler is set but before the data is
assigned, leading to a NULL pointer dereference.

Replace the two calls with irq_set_chained_handler_and_data() to set
both the handler and its data atomically under the irq_desc->lock.

Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20260119061232.889236-1-nichen@iscas.ac.cn
2026-04-01 09:21:05 +05:30
..
Kconfig powerpc: Drop MPC5200 LocalPlus bus FIFO driver 2023-05-15 23:25:56 +10:00
Makefile powerpc: Drop MPC5200 LocalPlus bus FIFO driver 2023-05-15 23:25:56 +10:00
efika.c powerpc/machdep: Drop include of seq_file.h 2024-10-29 23:01:05 +11:00
lite5200.c powerpc/machdep: Define 'compatibles' property in ppc_md and use it 2024-03-03 22:20:29 +11:00
lite5200_pm.c powerpc: 52xx: Make immr_id DT match tables static 2023-06-21 15:13:56 +10:00
lite5200_sleep.S powerpc: rename SPRN_HID2 define to SPRN_HID2_750FX 2024-05-08 00:25:00 +10:00
media5200.c powerpc/52xx/media5200: Consolidate chained IRQ handler install/remove 2026-04-01 09:21:05 +05:30
mpc52xx_common.c powerpc/52xx: Replace of_gpio.h by proper one 2024-04-08 23:19:24 +10:00
mpc52xx_gpt.c powerpc/52xx/mpc52xx_gpt: consolidate chained IRQ handler install/remove 2026-04-01 09:21:05 +05:30
mpc52xx_pci.c PCI: Introduce pci_dev_for_each_resource() 2023-04-04 10:43:52 -05:00
mpc52xx_pic.c powerpc: Switch to irq_find_mapping() 2025-05-16 21:06:12 +02:00
mpc52xx_pm.c powerpc: 52xx: Make immr_id DT match tables static 2023-06-21 15:13:56 +10:00
mpc52xx_sleep.S
mpc5200_simple.c powerpc/machdep: Define 'compatibles' property in ppc_md and use it 2024-03-03 22:20:29 +11:00