]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix xmit_more counter race issue
authorTariq Toukan <tariqt@mellanox.com>
Wed, 7 Sep 2016 16:07:57 +0000 (19:07 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Sep 2016 23:15:28 +0000 (16:15 -0700)
commit4ef0708778279eb280ca88b39e4e56d002e065c5
tree038b2f484391cdeb2f3f155663d1efa68152801e
parentdb2343cdcaa5bc70964e850edf719a19e11636c2
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: 22b3f5f97aef ("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>
drivers/net/ethernet/mellanox/mlx5/core/en_tx.c