]> git.droids-corp.org - dpdk.git/blobdiff - drivers/bus/pci/pci_common.c
bus/pci: clear driver on detach
[dpdk.git] / drivers / bus / pci / pci_common.c
index 6b46b4f07004a186b1351e39058499aefb626e0a..3f55420769c048d2f063a017b1ca91399b858ad2 100644 (file)
@@ -247,6 +247,7 @@ rte_pci_detach_dev(struct rte_pci_device *dev)
 
        /* clear driver structure */
        dev->driver = NULL;
+       dev->device.driver = NULL;
 
        if (dr->drv_flags & RTE_PCI_DRV_NEED_MAPPING)
                /* unmap resources for devices that use igb_uio */