drivers: net: xgene: fix possible use after free
authorEric Dumazet <edumazet@google.com>
Wed, 25 Nov 2015 17:02:10 +0000 (09:02 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Nov 2015 03:51:45 +0000 (22:51 -0500)
commit9ffad80a9c65d7c2ab5ad6cb8b4b0559b9ed8b8c
tree736a7c787e87cae573f380b0e7741566d3e60644
parent880621c2605b82eb5af91a2c94223df6f5a3fb64
drivers: net: xgene: fix possible use after free

Once TX has been enabled on a NIC, it is illegal to access skb,
as this skb might have been freed by another cpu, from TX completion
handler.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Mark Rutland <mark.rutland@arm.com>
Tested-by: Mark Rutland <mark.rutland@arm.com>
Cc: Iyappan Subramanian <isubramanian@apm.com>
Acked-by: Iyappan Subramanian <isubramanian@apm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/apm/xgene/xgene_enet_main.c