OSDN Git Service

PCI: rpaphp: Get/put device node reference during slot alloc/dealloc
authorTyrel Datwyler <tyreld@linux.vnet.ibm.com>
Fri, 22 Mar 2019 18:27:22 +0000 (13:27 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 10 Apr 2019 21:07:12 +0000 (16:07 -0500)
commit91800660bbe9d4ae7791f0e646e5736180f01fc0
treec23070bd2763b4994b881eb641f5273f649f7802
parentfb26228bfc4ce3951544848555c0278e2832e618
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>
drivers/pci/hotplug/rpaphp_slot.c