]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 10 Mar 2016 16:37:31 +0000 (08:37 -0800)
commit67f1c474722244466853df71b500b40c8fdcfd53
treebc08715ca01827f02646cb52a3988dfdf324c9e6
parentda585a3e6f4c2bc4043cb28b9dc616c254ff7ae0
i40evf: set adapter state on reset failure

Orabug: 22342532

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>
(cherry picked from commit 9b9344f7ce19c5c481f203a0af3e120b965afcd9)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/i40evf/i40evf_main.c