lpc_eth: fix tx completion
authorEric Dumazet <edumazet@google.com>
Mon, 11 Jun 2012 07:21:36 +0000 (07:21 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Jul 2012 16:03:45 +0000 (09:03 -0700)
commit3d5f5b08fa79068f567534166fb88ccebcb7c6d4
tree5d7246f0783a64e2369590b7bd1b4ad897cc6cb6
parent1a36f94f6a9906d389787c259f86f13fc48c82a6
lpc_eth: fix tx completion

[ Upstream commit 3f16da51b0e533871d22a29682f3c3969d4f7e22 ]

__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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/nxp/lpc_eth.c