Merge branch 'remotes/lorenzo/pci/xilinx'

- Fix reference count leak on error path (Pan Bian)

* remotes/lorenzo/pci/xilinx:
  PCI: xilinx-cpm: Fix reference count leak on error path
This commit is contained in:
Bjorn Helgaas 2021-02-24 14:59:25 -06:00
commit 88d2ec1c0d
1 changed files with 1 additions and 0 deletions

View File

@ -404,6 +404,7 @@ static int xilinx_cpm_pcie_init_irq_domain(struct xilinx_cpm_pcie_port *port)
return 0;
out:
xilinx_cpm_free_irq_domains(port);
of_node_put(pcie_intc_node);
dev_err(dev, "Failed to allocate IRQ domains\n");
return -ENOMEM;