diff options
author | Don Skidmore <donald.c.skidmore@intel.com> | 2016-07-12 18:47:38 -0400 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2016-07-22 01:43:27 -0700 |
commit | 6e469ed03ed9b21b0c2dd46f77113a85f3e2bea6 (patch) | |
tree | 64053efeb8749516555501825483a187cb1c7107 | |
parent | 6b8368798772a4fabfec690be3b5f390c4bda600 (diff) | |
download | linux-stable-6e469ed03ed9b21b0c2dd46f77113a85f3e2bea6.tar.gz linux-stable-6e469ed03ed9b21b0c2dd46f77113a85f3e2bea6.tar.bz2 linux-stable-6e469ed03ed9b21b0c2dd46f77113a85f3e2bea6.zip |
ixgbevf: Protect ixgbevf_reset_subtask from remove event
In ixgbevf_reset_subtask We weren't verifying that the port haven't
been removed, we are with this patch.
Signed-off-by: Don Skidmore <donald.c.skidmore@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
-rw-r--r-- | drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c index 7dc42453fa0c..201e48215c01 100644 --- a/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c +++ b/drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c @@ -2774,6 +2774,7 @@ static void ixgbevf_reset_subtask(struct ixgbevf_adapter *adapter) /* If we're already down or resetting, just bail */ if (test_bit(__IXGBEVF_DOWN, &adapter->state) || + test_bit(__IXGBEVF_REMOVING, &adapter->state) || test_bit(__IXGBEVF_RESETTING, &adapter->state)) return; |