diff options
author | Eric Dumazet <edumazet@google.com> | 2016-03-17 11:57:06 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-04-20 15:42:04 +0900 |
commit | 7a0e9a08642993bfde0dd03a5a3f825869cc4d06 (patch) | |
tree | 5f8c7fe34907e3055e2041f1b4adcbe8882839cc /tools | |
parent | a5ce25f61bce0ffb1ff59071c06b948277c90a28 (diff) |
net: bcmgenet: fix dma api length mismatch
[ Upstream commit eee577232203842b4dcadb7ab477a298479633ed ]
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions