• Neil Horman's avatar
    jme: Fix unmap loop counting error: · c4b16068
    Neil Horman authored
    In my recent fix (76a691d0: 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: default avatarNeil 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: default avatarDavid S. Miller <davem@davemloft.net>
    c4b16068
jme.c 74.7 KB