Skip to content

Commit

Permalink
sfc: mark state UNINIT after unregister
Browse files Browse the repository at this point in the history
Without this change, modprobe -r sfc hits the BUG_ON() in
efx_pci_remove_main().

Fixes: e7fef9b ("sfc: add sysfs entry to control MCDI tracing")
Reported-by: Jarod Wilson <[email protected]>
Reviewed-by: Jarod Wilson <[email protected]>
Signed-off-by: Edward Cree <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
ecree-solarflare authored and davem330 committed Jun 16, 2015
1 parent 24029a3 commit ea6bb99
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/ethernet/sfc/efx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ea6bb99

Please sign in to comment.