diff options
author | Yuval Mintz <Yuval.Mintz@qlogic.com> | 2014-08-25 17:48:30 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-08-25 17:30:21 -0700 |
commit | ea36475a22ded71633331a0b9b3cddd7f1d6983a (patch) | |
tree | 4792838f4826dcd18166693e2bc6f80599aa7df4 /drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | |
parent | b3befae1d6cd4c4e15f1ecb6fe3e2bab94675d37 (diff) | |
download | linux-ea36475a22ded71633331a0b9b3cddd7f1d6983a.tar.gz linux-ea36475a22ded71633331a0b9b3cddd7f1d6983a.tar.bz2 linux-ea36475a22ded71633331a0b9b3cddd7f1d6983a.zip |
bnx2x: Fix stop-on-error
When STOP_ON_ERROR is set driver will not compile. Even if it did,
traffic will not pass without this patch as several fields which are
verified by FW/HW on the Tx path are not properly set.
Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Signed-off-by: Ariel Elior <Ariel.Elior@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c index 0728c02440f4..2f394b82ca02 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c @@ -1143,7 +1143,7 @@ void bnx2x_panic_dump(struct bnx2x *bp, bool disable_int) if (!fp->txdata_ptr) break; - if (!txdata.tx_cons_sb) + if (!txdata->tx_cons_sb) continue; start = TX_BD(le16_to_cpu(*txdata->tx_cons_sb) - 10); |