From: Don Skidmore Date: Tue, 12 Jul 2016 22:47:38 +0000 (-0400) Subject: ixgbevf: Protect ixgbevf_reset_subtask from remove event X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6e469ed03ed9b21b0c2dd46f77113a85f3e2bea6;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Tested-by: Andrew Bowers Signed-off-by: Jeff Kirsher --- 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;