]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dwc_eth_qos: fix race condition in dwceqos_start_xmit
authorRabin Vincent <rabinv@axis.com>
Mon, 29 Feb 2016 15:22:30 +0000 (16:22 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Mar 2016 19:57:14 +0000 (14:57 -0500)
commit8afb6c474b0dd8f9cf7e122a19c71924566fdb97
tree6446f96b2ae1b14d03fecb4fc605e628c6e31f01
parent11351bf762d27116dd9fb362b198bebdfd427d53
dwc_eth_qos: fix race condition in dwceqos_start_xmit

The xmit handler and the tx_reclaim tasklet had a race on the tx_free
variable which could lead to a tx timeout if tx_free was updated after
the tx complete interrupt.

Signed-off-by: Rabin Vincent <rabinv@axis.com>
Signed-off-by: Lars Persson <larper@axis.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/synopsys/dwc_eth_qos.c