diff options
author | Edward Cree <ecree@solarflare.com> | 2015-06-15 17:27:54 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-06-16 02:55:01 (GMT) |
commit | ea6bb99ed5860c8906f2ae281da391227f1f027c (patch) | |
tree | a5d896a16bf435707c876cc2cc7a616931024483 /drivers/net | |
parent | 24029a3603cfa633e8bc2b3fb3e48e76c497831d (diff) | |
download | linux-ea6bb99ed5860c8906f2ae281da391227f1f027c.tar.xz |
sfc: mark state UNINIT after unregister
Without this change, modprobe -r sfc hits the BUG_ON() in
efx_pci_remove_main().
Fixes: e7fef9b45ae1 ("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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/sfc/efx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/efx.c b/drivers/net/ethernet/sfc/efx.c index 0c42ed9..67bdaf3 100644 --- a/drivers/net/ethernet/sfc/efx.c +++ b/drivers/net/ethernet/sfc/efx.c @@ -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) |