Re: [PATCH 1/1] gpio: davinci: fix IRQ domain leak on devm_kzalloc failure

From: Bartosz Golaszewski

Date: Tue Jun 23 2026 - 04:47:38 EST



On Tue, 23 Jun 2026 10:31:06 +0800, fffsqian@xxxxxxx wrote:
> In davinci_gpio_irq_setup(), after successfully creating an IRQ domain
> with irq_domain_create_legacy(), a subsequent devm_kzalloc() failure
> in the bank loop causes the function to return -ENOMEM without
> removing the IRQ domain.
>
> Unlike devm-managed resources, irq_domain_create_legacy() does not
> auto-clean up on probe failure, so the domain is leaked.
>
> [...]

Applied, thanks!

[1/1] gpio: davinci: fix IRQ domain leak on devm_kzalloc failure
https://git.kernel.org/brgl/c/4e8eb6952aa6749726c6c3763ae0032a6332c24f

Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>