Skip to content

Commit d13a9ea

Browse files
committed
Merge branch 'pci/controller/mediatek'
- Fix IRQ domain leak when MSI allocation fails (Haotian Zhang) * pci/controller/mediatek: PCI: mediatek: Fix IRQ domain leak when MSI allocation fails
2 parents 7d24571 + 7f0cdcd commit d13a9ea

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

drivers/pci/controller/pcie-mediatek.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,8 +585,10 @@ static int mtk_pcie_init_irq_domain(struct mtk_pcie_port *port,
585585

586586
if (IS_ENABLED(CONFIG_PCI_MSI)) {
587587
ret = mtk_pcie_allocate_msi_domains(port);
588-
if (ret)
588+
if (ret) {
589+
irq_domain_remove(port->irq_domain);
589590
return ret;
591+
}
590592
}
591593

592594
return 0;

0 commit comments

Comments
 (0)