summaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2016-03-17 11:57:06 -0700
committerBen Hutchings <ben@decadent.org.uk>2016-05-01 00:06:03 +0200
commit8c487c211ecf5e6440b0a3d88f4b0dd6cfa0e304 (patch)
treea54642b12d6544c2ca8393b281a60bca7289e605 /net/core
parent5c1e8c82c3a821ec9dbdc82c9fb265dd11863868 (diff)
downloadlinux-stable-8c487c211ecf5e6440b0a3d88f4b0dd6cfa0e304.tar.gz
linux-stable-8c487c211ecf5e6440b0a3d88f4b0dd6cfa0e304.tar.bz2
linux-stable-8c487c211ecf5e6440b0a3d88f4b0dd6cfa0e304.zip
net: bcmgenet: fix dma api length mismatch
commit eee577232203842b4dcadb7ab477a298479633ed upstream. When un-mapping skb->data in __bcmgenet_tx_reclaim(), we must use the length that was used in original dma_map_single(), instead of skb->len that might be bigger (includes the frags) We simply can store skb_len into tx_cb_ptr->dma_len and use it at unmap time. Fixes: 1c1008c793fa ("net: bcmgenet: add main driver file") Signed-off-by: Eric Dumazet <edumazet@google.com> Acked-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> [bwh: Backported to 3.16: adjust context] Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'net/core')
0 files changed, 0 insertions, 0 deletions