[PATCH] powerpc/52xx/mpc52xx_gpt: consolidate chained IRQ handler install/remove

Madhavan Srinivasan maddy at linux.ibm.com
Wed Apr 8 14:28:50 AEST 2026


On Mon, 19 Jan 2026 14:12:32 +0800, Chen Ni wrote:
> 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.
> 
> [...]

Applied to powerpc/next.

[1/1] powerpc/52xx/mpc52xx_gpt: consolidate chained IRQ handler install/remove
      https://git.kernel.org/powerpc/c/7593721cd7c1315557956d5241bbb65fb33115eb

cheers


More information about the Linuxppc-dev mailing list