]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: xilinx-nwl: Add missing of_node_put()
authorNicholas Mc Guire <hofrat@osadl.org>
Fri, 29 Jun 2018 18:50:10 +0000 (13:50 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 29 Jun 2018 18:50:10 +0000 (13:50 -0500)
commitbe8dec7a95076f4c90e30f5c58d0b09c48a53148
tree60bdb446e4666afaac486e6dec8b94008ad79d1f
parent3a85cdfae30d24e4e7061efec23d321277b999ed
PCI: xilinx-nwl: Add missing of_node_put()

The call to of_get_next_child() returns a node pointer with
refcount incremented thus it must be explicitly decremented
here after the last usage.

Fixes: d81c365c24ee ("PCI: xilinx-nwl: Add support for Xilinx NWL PCIe Host Controller")
Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
[lorenzo.pieralisi@arm.com: updated commit log]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/controller/pcie-xilinx-nwl.c