]> 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)
commit4a4011e851bc2858acf9aa8ece87cb7af431af58
treeffbbfd627d08f90774be98ad8c0e33fb4f732974
parent3a8b6432d0629a909806f70d763baa255f57a7ad
tg3: fix tigon3_dma_hwbug_workaround()

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