sfc: mark state UNINIT after unregister
authorEdward Cree <ecree@solarflare.com>
Mon, 15 Jun 2015 17:27:54 +0000 (18:27 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Jun 2015 02:55:01 +0000 (19:55 -0700)
commitea6bb99ed5860c8906f2ae281da391227f1f027c
treea5d896a16bf435707c876cc2cc7a616931024483
parent24029a3603cfa633e8bc2b3fb3e48e76c497831d
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>
drivers/net/ethernet/sfc/efx.c