]> git.dujemihanovic.xyz Git - linux.git/commit
dpaa2-switch: fix size of the dma_unmap
authorIoana Ciornei <ioana.ciornei@nxp.com>
Tue, 12 Dec 2023 16:43:25 +0000 (18:43 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 14 Dec 2023 02:38:53 +0000 (18:38 -0800)
commit2aad7d4189a923b24efa8ea6ad09059882b1bfe4
tree1e5ff714e584354383d19e75caabf073ea846b65
parent23d05d563b7e7b0314e65c8e882bc27eac2da8e7
dpaa2-switch: fix size of the dma_unmap

The size of the DMA unmap was wrongly put as a sizeof of a pointer.
Change the value of the DMA unmap to be the actual macro used for the
allocation and the DMA map.

Fixes: 1110318d83e8 ("dpaa2-switch: add tc flower hardware offload on ingress traffic")
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Link: https://lore.kernel.org/r/20231212164326.2753457-2-ioana.ciornei@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/dpaa2/dpaa2-switch-flower.c