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)
__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>

No differences found