linux/drivers/pci/controller/dwc
Wen Yang b35c0e4543 PCI: dwc: layerscape: Fix a leaked reference by adding missing of_node_put()
The call to of_parse_phandle() returns a node pointer with refcount
incremented thus it must be explicitly decremented after the last
usage.

Detected by coccinelle with the following warnings:
  ./drivers/pci/controller/dwc/pci-layerscape.c:204:1-7: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 198, but without a corresponding object release within this function.

Signed-off-by: Wen Yang <wen.yang99@zte.com.cn>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: Minghuan Lian <minghuan.Lian@nxp.com>
Cc: Mingkai Hu <mingkai.hu@nxp.com>
Cc: Roy Zang <roy.zang@nxp.com>
Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: linuxppc-dev@lists.ozlabs.org
Cc: linux-pci@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
2019-04-01 10:39:17 +01:00
..
Kconfig PCI: imx6: Add support for i.MX8MQ 2019-02-04 12:04:53 +00:00
Makefile PCI: layerscape: Add EP mode support 2019-02-21 10:40:55 +00:00
pci-dra7xx.c PCI: dwc: pci-dra7xx: Fix a leaked reference by adding missing of_node_put() 2019-03-29 16:57:14 +00:00
pci-exynos.c PCI: exynos: Drop unnecessary root_bus_nr setting 2018-07-13 14:07:47 +01:00
pci-imx6.c pci-v5.1-changes 2019-03-09 14:57:08 -08:00
pci-keystone.c PCI: keystone: Cleanup macros defined in pci-keystone.c 2018-10-17 09:59:02 +01:00
pci-layerscape-ep.c PCI: layerscape: Add EP mode support 2019-02-21 10:40:55 +00:00
pci-layerscape.c PCI: dwc: layerscape: Fix a leaked reference by adding missing of_node_put() 2019-04-01 10:39:17 +01:00
pci-meson.c PCI: amlogic: Fix build failure due to missing gpio header 2019-01-08 09:01:44 -06:00
pcie-armada8k.c Revert "PCI: armada8k: Add support for gpio controlled reset signal" 2019-01-31 15:07:29 -06:00
pcie-artpec6.c PCI: Update xxx_pcie_ep_raise_irq() and pci_epc_raise_irq() signatures 2018-07-19 11:34:42 +01:00
pcie-designware-ep.c Merge branch 'remotes/lorenzo/pci/endpoint' 2019-03-06 15:30:21 -06:00
pcie-designware-host.c PCI: dwc: skip MSI init if MSIs have been explicitly disabled 2019-03-01 12:05:45 +00:00
pcie-designware-plat.c Merge branch 'remotes/lorenzo/pci/endpoint' 2019-03-06 15:30:21 -06:00
pcie-designware.c PCI: dwc: Make use of BIT() in constant definitions 2019-03-01 10:55:32 +00:00
pcie-designware.h Merge branch 'remotes/lorenzo/pci/endpoint' 2019-03-06 15:30:21 -06:00
pcie-hisi.c
pcie-histb.c PCI: histb: Constify dw_pcie_host_ops structure 2018-11-08 13:54:44 +00:00
pcie-kirin.c PCI: kirin: Fix section mismatch warning 2018-10-01 17:16:23 +01:00
pcie-qcom.c PCI: qcom: Don't deassert reset GPIO during probe 2019-02-28 09:46:10 +00:00
pcie-spear13xx.c PCI: spear13xx: Drop unnecessary root_bus_nr setting 2018-07-13 14:10:55 +01:00
pcie-uniphier.c PCI: uniphier: Fix a leaked reference by adding missing of_node_put() 2019-03-29 16:57:50 +00:00