diff options
author | 2010-01-18 05:47:50 +0000 | |
---|---|---|
committer | 2010-01-19 01:59:03 -0800 | |
commit | 34692421bc7d6145ef383b014860f4fde10b7505 (patch) | |
tree | ab1674b67e9169940a206b43c0d7dd8d0b6c139f /lib/bitmap.c | |
parent | phylib: Move workqueue initialization to a proper place (diff) | |
download | linux-dev-34692421bc7d6145ef383b014860f4fde10b7505.tar.xz linux-dev-34692421bc7d6145ef383b014860f4fde10b7505.zip |
ucc_geth: Fix full TX queue processing
commit 7583605b6d29f1f7f6fc505b883328089f3485ad ("ucc_geth: Fix empty
TX queue processing") fixed empty TX queue mishandling, but didn't
account another corner case: when TX queue becomes full.
Without this patch the driver will stop transmiting when TX queue
becomes full since 'bd == ugeth->txBd[txQ]' actually checks for
two things: queue empty or full.
Let's better check for NULL skb, which unambiguously signals an empty
queue.
Signed-off-by: Jiajun Wu <b06378@freescale.com>
Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Cc: Stable <stable@vger.kernel.org> [2.6.32]
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/bitmap.c')
0 files changed, 0 insertions, 0 deletions