|
@@ -1861,6 +1861,7 @@ out:
|
|
|
}
|
|
|
|
|
|
if (disabled) {
|
|
|
+ dev_close(efx->net_dev);
|
|
|
EFX_ERR(efx, "has been disabled\n");
|
|
|
efx->state = STATE_DISABLED;
|
|
|
} else {
|
|
@@ -1884,8 +1885,7 @@ static void efx_reset_work(struct work_struct *data)
|
|
|
}
|
|
|
|
|
|
rtnl_lock();
|
|
|
- if (efx_reset(efx, efx->reset_pending))
|
|
|
- dev_close(efx->net_dev);
|
|
|
+ (void)efx_reset(efx, efx->reset_pending);
|
|
|
rtnl_unlock();
|
|
|
}
|
|
|
|