[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <56EB3AE0.5030604@gmail.com>
Date: Thu, 17 Mar 2016 16:16:48 -0700
From: Florian Fainelli <f.fainelli@...il.com>
To: Eric Dumazet <eric.dumazet@...il.com>,
David Miller <davem@...emloft.net>
Cc: netdev@...r.kernel.org, opendmb@...il.com
Subject: Re: [PATCH net] net: bcmgenet: fix dma api length mismatch
On 17/03/16 11:57, Eric Dumazet wrote:
> From: Eric Dumazet <edumazet@...gle.com>
>
> 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@...gle.com>
Acked-by: Florian Fainelli <f.fainelli@...il.com>
Good catch, thanks!
--
Florian
Powered by blists - more mailing lists