]> git.baikalelectronics.ru Git - kernel.git/commit
net: mvpp2: fix missing DMA region unmap in egress processing
authorMarcin Wojtas <mw@semihalf.com>
Thu, 3 Dec 2015 14:20:49 +0000 (15:20 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Dec 2015 20:01:13 +0000 (15:01 -0500)
commit0950eb4ddc8db52ecc9aa3bc8ac141396b38a6ee
treeee769da432c32e72d92fabde28cb6a71bb36ff02
parent82b056ab0df690f73ba481fea89a6cf4920f0968
net: mvpp2: fix missing DMA region unmap in egress processing

The Tx descriptor release code currently calls dma_unmap_single() and
dev_kfree_skb_any() if the descriptor is associated with a non-NULL skb.
This condition is true only for the last fragment of the packet.

Since every descriptor's buffer is DMA-mapped it has to be properly
unmapped.

Signed-off-by: Marcin Wojtas <mw@semihalf.com>
Fixes: dc37d05f9885 ("ethernet: Add new driver for Marvell Armada 375
network unit")

Cc: <stable@vger.kernel.org> # v3.18+
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2.c