Skip to content

Commit

Permalink
bnx2x: Adapter not recovery from EEH error injection
Browse files Browse the repository at this point in the history
When injecting EEH error to bnx2x adapter, adapter couldn't be recovery
and caused recursive EEH errors. The patch fixes the issue.

Signed-off-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
wenxiong@linux.vnet.ibm.com authored and David S. Miller committed Jun 4, 2014
1 parent 31f6f29 commit 0c0e634
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -13283,8 +13283,8 @@ static int bnx2x_eeh_nic_unload(struct bnx2x *bp)
netdev_reset_tc(bp->dev);

del_timer_sync(&bp->timer);
cancel_delayed_work(&bp->sp_task);
cancel_delayed_work(&bp->period_task);
cancel_delayed_work_sync(&bp->sp_task);
cancel_delayed_work_sync(&bp->period_task);

spin_lock_bh(&bp->stats_lock);
bp->stats_state = STATS_STATE_DISABLED;
Expand Down

0 comments on commit 0c0e634

Please sign in to comment.