summaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2021-02-24 14:59:25 -0600
committerBjorn Helgaas <bhelgaas@google.com>2021-02-24 14:59:25 -0600
commit88d2ec1c0d6434102d236c378d0fc5a6a8b37117 (patch)
tree662f6c7eb791e1025576dbf6fd62a32c2f6ef52d /drivers/pci
parent0a437c50f896cecff8fa603eab9c39da9aeb90a4 (diff)
parentae191d2e513ae5274224777ae67018a584074a28 (diff)
downloadlinux-88d2ec1c0d6434102d236c378d0fc5a6a8b37117.tar.bz2
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
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/controller/pcie-xilinx-cpm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pci/controller/pcie-xilinx-cpm.c b/drivers/pci/controller/pcie-xilinx-cpm.c
index f92e0152e65e..67937facd90c 100644
--- a/drivers/pci/controller/pcie-xilinx-cpm.c
+++ b/drivers/pci/controller/pcie-xilinx-cpm.c
@@ -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;