]> git.baikalelectronics.ru Git - kernel.git/commit
dpaa2-eth: unmap the SGT buffer before accessing its contents
authorIoana Ciornei <ioana.ciornei@nxp.com>
Sun, 22 May 2022 12:52:51 +0000 (15:52 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 May 2022 21:18:05 +0000 (22:18 +0100)
commit32a3ca0033c08270d67588d70b90b22f3166cc55
tree3bcd6b0cd1e136697e4adf991ad5d9ff80805366
parent162a5a21ea0c3dceae4c9059782d4af423495a82
dpaa2-eth: unmap the SGT buffer before accessing its contents

DMA unmap the Scatter/Gather table before going through the array to
unmap and free each of the header and data chunks. This is so we do not
touch the data between the dma_map and dma_unmap calls.

Fixes: fd434b02b467 ("dpaa2-eth: add support for software TSO")
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c