diff options
author | Tariq Toukan | 2016-09-07 18:07:57 +0200 |
---|---|---|
committer | David S. Miller | 2016-09-09 01:15:28 +0200 |
commit | 0dbf657c3993a269fa0cd7dabbb9c02741d4aefa (patch) | |
tree | 038b2f484391cdeb2f3f155663d1efa68152801e /drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c | |
parent | tcp: fastopen: avoid negative sk_forward_alloc (diff) | |
download | kernel-qcow2-linux-0dbf657c3993a269fa0cd7dabbb9c02741d4aefa.tar.gz kernel-qcow2-linux-0dbf657c3993a269fa0cd7dabbb9c02741d4aefa.tar.xz kernel-qcow2-linux-0dbf657c3993a269fa0cd7dabbb9c02741d4aefa.zip |
net/mlx5e: Fix xmit_more counter race issue
Update the xmit_more counter before notifying the HW,
to prevent a possible use-after-free of the skb.
Fixes: c8cf78fe100b ("net/mlx5e: Add ethtool counter for TX xmit_more")
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c')
0 files changed, 0 insertions, 0 deletions