diff options
| author | Haotian Zhang <vulab@iscas.ac.cn> | 2025-11-19 10:33:08 +0800 |
|---|---|---|
| committer | Manivannan Sadhasivam <mani@kernel.org> | 2025-12-18 13:36:56 +0530 |
| commit | 7f0cdcddf8bef1c8c18f9be6708073fd3790a20f (patch) | |
| tree | 27b8fa9d1c51b582cc84e794134699f9c76bdb50 /include/uapi/linux | |
| parent | 8f0b4cce4481fb22653697cced8d0d04027cb1e8 (diff) | |
PCI: mediatek: Fix IRQ domain leak when MSI allocation fails
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.
Fixes: 43e6409db64d ("PCI: mediatek: Add MSI support for MT2712 and MT7622")
Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Link: https://patch.msgid.link/20251119023308.476-1-vulab@iscas.ac.cn
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions
