[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20160318.231306.1347406577388515779.davem@davemloft.net>
Date: Fri, 18 Mar 2016 23:13:06 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: f.fainelli@...il.com, netdev@...r.kernel.org, opendmb@...il.com
Subject: Re: [PATCH net] net: bcmgenet: fix dma api length mismatch
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Thu, 17 Mar 2016 11:57:06 -0700
> 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>
Applied and queued up for -stable, thanks.
Powered by blists - more mailing lists