Re: [PATCH] gpio: mpc8xxx: Fix potential use-after-free of IRQ domain
From: Bartosz Golaszewski
Date: Mon Nov 02 2026 - 08:58:36 EST
On Sat, 31 Oct 2026 21:05:41 +0800, Guangshuo Li wrote:
> GPIO chip cleanup can call the to_irq callback while releasing requested
> GPIOs. Removing the IRQ domain first leaves that callback using a freed
> domain, both on removal and after an IRQ request failure.
>
> Register domain cleanup before GPIO chip registration so devres removes
> the chip before freeing the domain.
>
> [...]
Applied, thanks!
[1/1] gpio: mpc8xxx: Fix potential use-after-free of IRQ domain
https://git.kernel.org/brgl/c/ede1a6a551d3728165b31b494bfaae73b328354e
Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>