pxa168_eth: fix race in transmit path.
authorRichard Cochran <richardcochran@gmail.com>
Sun, 19 Jun 2011 21:48:06 +0000 (21:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Jun 2011 21:02:07 +0000 (14:02 -0700)
commit384420409d9b5d4443940abace49363d26135412
treec347e488ded1b6eb53168d52faa5f3e25c7acdc4
parent8ad2475e3555346fbd738e77da12578b97d10505
pxa168_eth: fix race in transmit path.

Because the socket buffer is freed in the completion interrupt, it is not
safe to access it after submitting it to the hardware.

Cc: stable@kernel.org
Cc: Sachin Sanap <ssanap@marvell.com>
Cc: Zhangfei Gao <zgao6@marvell.com>
Cc: Philip Rakity <prakity@marvell.com>
Signed-off-by: Richard Cochran <richard.cochran@omicron.at>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/pxa168_eth.c