diff options
author | Miaoqian Lin <linmq006@gmail.com> | 2022-06-05 09:51:23 +0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2022-06-08 15:26:24 -0500 |
commit | f030304fdeb87ec8f1b518c73703214aec6cc24a (patch) | |
tree | bd2822b77ea6c78940291ef26acd402218447fbd /drivers/pci/controller/dwc/pcie-histb.c | |
parent | f2906aa863381afb0015a9eb7fefad885d4e5a56 (diff) | |
download | linux-f030304fdeb87ec8f1b518c73703214aec6cc24a.tar.bz2 |
PCI: microchip: Fix refcount leak in mc_pcie_init_irq_domains()
of_get_next_child() returns a node pointer with refcount incremented, so we
should use of_node_put() on it when we don't need it anymore.
mc_pcie_init_irq_domains() only calls of_node_put() in the normal path,
missing it in some error paths. Add missing of_node_put() to avoid
refcount leak.
Fixes: 6f15a9c9f941 ("PCI: microchip: Add Microchip PolarFire PCIe controller driver")
Link: https://lore.kernel.org/r/20220605055123.59127-1-linmq006@gmail.com
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/pci/controller/dwc/pcie-histb.c')
0 files changed, 0 insertions, 0 deletions