summaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/rpaphp_slot.c
diff options
context:
space:
mode:
authorTyrel Datwyler <tyreld@linux.vnet.ibm.com>2019-03-22 19:27:21 +0100
committerBjorn Helgaas <bhelgaas@google.com>2019-04-10 23:07:12 +0200
commitfb26228bfc4ce3951544848555c0278e2832e618 (patch)
tree0638fc0ddacf60c24e1680d4ec689b53bf756164 /drivers/pci/hotplug/rpaphp_slot.c
parentLinux 5.1-rc1 (diff)
downloadlinux-fb26228bfc4ce3951544848555c0278e2832e618.tar.xz
linux-fb26228bfc4ce3951544848555c0278e2832e618.zip
PCI: rpadlpar: Fix leaked device_node references in add/remove paths
The find_dlpar_node() helper returns a device node with its reference incremented. Both the add and remove paths use this helper for find the appropriate node, but fail to release the reference when done. Annotate the find_dlpar_node() helper with a comment about the incremented reference count and call of_node_put() on the obtained device_node in the add and remove paths. Also, fixup a reference leak in the find_vio_slot() helper where we fail to call of_node_put() on the vdevice node after we iterate over its children. Signed-off-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/hotplug/rpaphp_slot.c')
0 files changed, 0 insertions, 0 deletions