]> git.baikalelectronics.ru Git - kernel.git/commit
tg3: fix tigon3_dma_hwbug_workaround()
authorEric Dumazet <eric.dumazet@gmail.com>
Sat, 22 Oct 2011 07:29:53 +0000 (03:29 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 22 Oct 2011 07:29:53 +0000 (03:29 -0400)
commit25be9eb1e6d0c8d3482c38d03a6e7c18609465e1
treeffbbfd627d08f90774be98ad8c0e33fb4f732974
parentc2b3c9ef18053629a71ab319151221e19d922622
tg3: fix tigon3_dma_hwbug_workaround()

Ari got kernel panics using tg3 NIC, and bisected to cfbba7ca09e1 "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