[PATCH] PCI: aspeed: Fix IRQ domain leak on platform_get_irq() failure
Manivannan Sadhasivam
manivannan.sadhasivam at oss.qualcomm.com
Sat Apr 4 21:35:40 AEDT 2026
On Tue, 24 Mar 2026 01:57:59 +0800, Felix Gu wrote:
> The aspeed_pcie_probe() function calls aspeed_pcie_init_irq_domain()
> which allocates pcie->intx_domain and initializes MSI. However, if
> platform_get_irq() fails afterwards, the cleanup action was not yet
> registered via devm_add_action_or_reset(), causing the IRQ domain
> resources to leak.
>
> Fix this by registering the devm cleanup action immediately after
> aspeed_pcie_init_irq_domain() succeeds, before calling
> platform_get_irq(). This ensures proper cleanup on any subsequent
> failure.
>
> [...]
Applied, thanks!
[1/1] PCI: aspeed: Fix IRQ domain leak on platform_get_irq() failure
commit: c54d5f5b33990f2649c20f35407f340bcadb8a53
Best regards,
--
Manivannan Sadhasivam <mani at kernel.org>
More information about the Linux-aspeed
mailing list