sfc: mark state UNINIT after unregister
[linux-drm-fsl-dcu.git] / drivers / net / ethernet / sfc / efx.c
index 0c42ed9c9e4c56f7556ecbde4347556ca893550c..67bdaf39dce5aeb3a5469710ddd0a768e7408be0 100644 (file)
@@ -2920,6 +2920,7 @@ static void efx_pci_remove(struct pci_dev *pci_dev)
        efx_dissociate(efx);
        dev_close(efx->net_dev);
        efx_disable_interrupts(efx);
+       efx->state = STATE_UNINIT;
        rtnl_unlock();
 
        if (efx->type->sriov_fini)