summaryrefslogtreecommitdiffstats
path: root/drivers/pci/p2pdma.c
diff options
context:
space:
mode:
authorWen Yang <wen.yang99@zte.com.cn>2019-02-27 05:40:38 +0100
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2019-04-01 11:39:17 +0200
commitb35c0e4543945fe9b21e6ed9ab72cdb5efb30718 (patch)
tree5154313985b67ce46dc8fa1d20b98d8d868ae19e /drivers/pci/p2pdma.c
parentPCI: uniphier: Fix a leaked reference by adding missing of_node_put() (diff)
downloadlinux-b35c0e4543945fe9b21e6ed9ab72cdb5efb30718.tar.xz
linux-b35c0e4543945fe9b21e6ed9ab72cdb5efb30718.zip
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
Diffstat (limited to 'drivers/pci/p2pdma.c')
0 files changed, 0 insertions, 0 deletions