]> asedeno.scripts.mit.edu Git - linux.git/commit
PCI: endpoint: Set endpoint controller pointer to NULL
authorAlan Mikhak <alan.mikhak@sifive.com>
Thu, 23 May 2019 21:45:44 +0000 (14:45 -0700)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tue, 11 Jun 2019 09:55:12 +0000 (10:55 +0100)
commitdb7a62482d2f6a63f36f30f62c4cbf1e53035719
tree59c72b1d0e6025896352df61cad86f5d973f73a7
parenta188339ca5a396acc588e5851ed7e19f66b0ebd9
PCI: endpoint: Set endpoint controller pointer to NULL

Set endpoint controller pointer to NULL in pci_epc_remove_epf()
to avoid -EBUSY on subsequent call to pci_epc_add_epf().

Add a check for NULL endpoint function pointer.

Signed-off-by: Alan Mikhak <alan.mikhak@sifive.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/pci/endpoint/pci-epc-core.c