]> git.ipfire.org Git - thirdparty/linux.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)
commit0a09c5b8cb8f75344da7d90c771b84f7cdeaea04
tree3bcd6b0cd1e136697e4adf991ad5d9ff80805366
parentd5f4e19a85670b4e5697654f4a4e086e064f8a47
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: 3dc709e0cd47 ("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