jme: Fix unmap loop counting error:
authorNeil Horman <nhorman@tuxdriver.com>
Mon, 12 May 2014 14:38:18 +0000 (10:38 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 May 2014 19:11:22 +0000 (15:11 -0400)
commitc4b160685fc85e41fe8c08478cc61f4877d26973
tree2f47eb3b894e440f007553682974656efb9a45ae
parent3a1cebe7e05027a1c96f2fc1a8eddf5f19b78f42
jme: Fix unmap loop counting error:

In my recent fix (76a691d0a: fix dma unmap warning), Ben Hutchings noted that my
loop count was incorrect.  Where j started at startidx, it should have started
at zero, and gone on for count entries, not to endidx.  Additionally, a DMA
resource exhaustion should drop the frame and (for now), return
NETDEV_TX_OK, not NETEV_TX_BUSY.  This patch fixes both of those issues:

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
CC: Ben Hutchings <ben@decadent.org.uk>
CC: "David S. Miller" <davem@davemloft.net>
CC: Guo-Fu Tseng <cooldavid@cooldavid.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/jme.c
This page took 0.033487 seconds and 5 git commands to generate.