]> git.baikalelectronics.ru Git - kernel.git/commit
3c59x: Fix bad offset spec in skb_frag_dma_map
authorNeil Horman <nhorman@tuxdriver.com>
Wed, 17 Sep 2014 13:04:45 +0000 (09:04 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Sep 2014 20:28:57 +0000 (16:28 -0400)
commitc0d3dd2ce8b68f62782d860a2ea9806f76e24033
tree44259b2387e278ba6c9212176d15893357b3d0c4
parentc165a3c264e88a399020d82a4d7cc8c679dd6bc4
3c59x: Fix bad offset spec in skb_frag_dma_map

Recently aded the use of skb_frag_dma_map to 3c59x, but didn't realize it
automatically included the frag_offset internally, as well as provided an option
to specify an extra offset in the parameter list.  We need to specify an offset
of 0 in the parameter list to avoid skb corruption that results in lost
connections.

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
CC: Linux Kernel list <linux-kernel@vger.kernel.org>
CC: "David S. Miller" <davem@davemloft.net>
CC: Meelis Roos <mroos@linux.ee>
Tested-by: Meelis Roos <mroos@linux.ee>
drivers/net/ethernet/3com/3c59x.c