diff options
author | Tyrel Datwyler <tyreld@linux.vnet.ibm.com> | 2019-03-22 19:27:22 +0100 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2019-04-10 23:07:12 +0200 |
commit | 91800660bbe9d4ae7791f0e646e5736180f01fc0 (patch) | |
tree | c23070bd2763b4994b881eb641f5273f649f7802 /drivers/pci/pci-acpi.c | |
parent | PCI: rpadlpar: Fix leaked device_node references in add/remove paths (diff) | |
download | linux-91800660bbe9d4ae7791f0e646e5736180f01fc0.tar.xz linux-91800660bbe9d4ae7791f0e646e5736180f01fc0.zip |
PCI: rpaphp: Get/put device node reference during slot alloc/dealloc
When allocating the slot structure we store a pointer to the associated
device_node. We really should be incrementing the reference count, so add
an of_node_get() during slot alloc and an of_node_put() during slot
dealloc.
Signed-off-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/pci-acpi.c')
0 files changed, 0 insertions, 0 deletions