summaryrefslogtreecommitdiffstats
path: root/drivers/pci/switch/switchtec.c
diff options
context:
space:
mode:
authorAlan Mikhak2019-05-23 23:45:44 +0200
committerLorenzo Pieralisi2019-06-11 11:55:12 +0200
commitdb7a62482d2f6a63f36f30f62c4cbf1e53035719 (patch)
tree59c72b1d0e6025896352df61cad86f5d973f73a7 /drivers/pci/switch/switchtec.c
parentLinux 5.2-rc1 (diff)
downloadkernel-qcow2-linux-db7a62482d2f6a63f36f30f62c4cbf1e53035719.tar.gz
kernel-qcow2-linux-db7a62482d2f6a63f36f30f62c4cbf1e53035719.tar.xz
kernel-qcow2-linux-db7a62482d2f6a63f36f30f62c4cbf1e53035719.zip
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>
Diffstat (limited to 'drivers/pci/switch/switchtec.c')
0 files changed, 0 insertions, 0 deletions