[PATCH] PCI: mediatek: Fix IRQ domain leak when MSI allocation fails
Manivannan Sadhasivam
manivannan.sadhasivam at oss.qualcomm.com
Thu Dec 18 00:09:50 PST 2025
On Wed, 19 Nov 2025 10:33:08 +0800, Haotian Zhang wrote:
> In mtk_pcie_init_irq_domain(), if mtk_pcie_allocate_msi_domains()
> fails after port->irq_domain has been successfully created via
> irq_domain_create_linear(), the function returns directly without
> cleaning up the allocated IRQ domain, resulting in a resource leak.
>
> Add irq_domain_remove() call in the error path to properly release the
> INTx IRQ domain before returning the error.
>
> [...]
Applied, thanks!
[1/1] PCI: mediatek: Fix IRQ domain leak when MSI allocation fails
commit: 7f0cdcddf8bef1c8c18f9be6708073fd3790a20f
Best regards,
--
Manivannan Sadhasivam <mani at kernel.org>
More information about the Linux-mediatek
mailing list