i40evf: set adapter state on reset failure
authorMitch Williams <mitch.a.williams@intel.com>
Fri, 15 Jan 2016 22:33:19 +0000 (14:33 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 18 Feb 2016 07:36:08 +0000 (23:36 -0800)
commit9b9344f7ce19c5c481f203a0af3e120b965afcd9
tree64bcf66cc430fce03c1ff3e07b494a569f17e20e
parent6e93d0c90fb2e20fc5b9dbdf28b45e91a16b4353
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>
drivers/net/ethernet/intel/i40evf/i40evf_main.c