tg3: fix tigon3_dma_hwbug_workaround()
commitf7ff19871bb4a3451e1ca2cf660bf633018cfbec
authorEric Dumazet <eric.dumazet@gmail.com>
Sat, 22 Oct 2011 07:29:53 +0000 (22 03:29 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 22 Oct 2011 07:29:53 +0000 (22 03:29 -0400)
treeffbbfd627d08f90774be98ad8c0e33fb4f732974
parent580043a27da2bd8201ee321a0d5550c629fcab8d
tg3: fix tigon3_dma_hwbug_workaround()

Ari got kernel panics using tg3 NIC, and bisected to 2669069aacc9 "tg3:
enable transmit time stamping."

This is because tigon3_dma_hwbug_workaround() might alloc a new skb and
free the original. We panic when skb_tx_timestamp() is called on freed
skb.

Reported-by: Ari Savolainen <ari.m.savolainen@gmail.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c