NET: nps_enet: TX done race condition
authorNoam Camus <noamc@ezchip.com>
Thu, 20 Aug 2015 05:00:02 +0000 (08:00 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 23 Aug 2015 23:08:53 +0000 (16:08 -0700)
commit93fcf83eb953d9ca2d3c51ff7f87095f0dd43511
treea6b96b30ef7d072a8c9adc50c6276cfdf91facb3
parent0dd20f3ce04e75521bd3f9867ecbc852ab348912
NET: nps_enet: TX done race condition

We need to set tx_skb pointer before send frame.
If we receive interrupt before we set pointer we will try
to free SKB with wrong pointer.
Now we are sure that SKB pointer will never be NULL during
handling TX done and check is removed.

Signed-off-by: Noam Camus <noamc@ezchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ezchip/nps_enet.c