From: Neil Horman Date: Mon, 12 May 2014 14:38:18 +0000 (-0400) Subject: jme: Fix unmap loop counting error: X-Git-Tag: omap-for-v3.16/fixes-against-rc1~146^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4b160685fc85e41fe8c08478cc61f4877d26973;p=pandora-kernel.git 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 CC: Ben Hutchings CC: "David S. Miller" CC: Guo-Fu Tseng Signed-off-by: David S. Miller --- Reading git-diff-tree failed