sfc: mark state UNINIT after unregister
Without this change, modprobe -r sfc hits the BUG_ON() in
efx_pci_remove_main().
Fixes: e7fef9b45a
("sfc: add sysfs entry to control MCDI tracing")
Reported-by: Jarod Wilson <jarod@redhat.com>
Reviewed-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
24029a3603
commit
ea6bb99ed5
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user