]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_en: Fix panic on xmit while port is down
authorMoshe Shemesh <moshe@mellanox.com>
Sun, 11 Sep 2016 07:56:20 +0000 (10:56 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Sep 2016 02:40:26 +0000 (19:40 -0700)
commitae0126cbb6788da1662a2f80177c89dffa4c1d3e
treef7908527ba24428c8426aae21a6343939b2795ae
parent927222aa2761f5d6f6edf9d5cfc35618a758a30b
net/mlx4_en: Fix panic on xmit while port is down

When port is down, tx drop counter update is not needed.
Updating the counter in this case can cause a kernel
panic as when the port is down, ring can be NULL.

Fixes: 8ece2c2711da ("net/mlx4_en: fix tx_dropped bug")
Signed-off-by: Moshe Shemesh <moshe@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_tx.c