af_packet: Don't use skb after dev_queue_xmit()
authorJarek Poplawski <jarkao2@gmail.com>
Sun, 10 Jan 2010 22:04:19 +0000 (22:04 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Jan 2010 23:39:42 +0000 (15:39 -0800)
commiteb70df13ee52dbc0f2c0ffd8ed34a8cd27440baf
tree9026781435cdaf46b8414f4596903dd7d5f2e5ae
parentfa15e99b6bb44aa86b241a43ca8c509e91f80153
af_packet: Don't use skb after dev_queue_xmit()

tpacket_snd() can change and kfree an skb after dev_queue_xmit(),
which is illegal.

With debugging by: Stephen Hemminger <shemminger@vyatta.com>

Reported-by: Michael Breuer <mbreuer@majjas.com>
With help from: David S. Miller <davem@davemloft.net>
Signed-off-by: Jarek Poplawski <jarkao2@gmail.com>
Tested-by: Michael Breuer<mbreuer@majjas.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c