diff options
author | Mitch Williams <mitch.a.williams@intel.com> | 2016-01-15 14:33:19 -0800 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2016-02-17 23:36:08 -0800 |
commit | 9b9344f7ce19c5c481f203a0af3e120b965afcd9 (patch) | |
tree | 64bcf66cc430fce03c1ff3e07b494a569f17e20e /drivers/net/ethernet/intel/i40evf/i40e_adminq.c | |
parent | 6e93d0c90fb2e20fc5b9dbdf28b45e91a16b4353 (diff) |
i40evf: set adapter state on reset failure
If a reset fails to complete, the driver gets its affairs in order and
awaits the cold solace of rmmod. Unfortunately, it was not properly
setting the adapter state, which would cause a panic on rmmod, instead
of the desired surcease.
Set the adapter state to DOWN in this case, and avoid a panic.
Change-ID: I6fdd9906da52e023f8dc744f7da44b5d95278ca9
Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/i40evf/i40e_adminq.c')
0 files changed, 0 insertions, 0 deletions