]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
lpc_eth: fix tx completion
authorEric Dumazet <edumazet@google.com>
Mon, 11 Jun 2012 07:21:36 +0000 (07:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Jun 2012 20:12:33 +0000 (13:12 -0700)
commit3f16da51b0e533871d22a29682f3c3969d4f7e22
tree4d53fd232311ab1dba229121c07ec83a4576d9eb
parente30478598a8476d02e3b00caa89ce1a3b1dad54b
lpc_eth: fix tx completion

__lpc_handle_xmit() has two bugs :

1) It can leak skbs in case TXSTATUS_ERROR is set

2) It can wake up txqueue while no slot was freed.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Roland Stigge <stigge@antcom.de>
Tested-by: Roland Stigge <stigge@antcom.de>
Cc: Kevin Wells <kevin.wells@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/nxp/lpc_eth.c