]> git.baikalelectronics.ru Git - kernel.git/commit
dpaa_eth: fix DMA mapping leak
authorMadalin Bucur <madalin.bucur@oss.nxp.com>
Mon, 23 Dec 2019 07:39:22 +0000 (09:39 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Dec 2019 23:11:31 +0000 (15:11 -0800)
commitddca56560e634259e57527012474168ff6ed7a48
treea6d6860fd51f9813abba03d67f5d4cd7bf3036ad
parent5d6924e64e86301e56c8527fa0bb9aa7e78c8e39
dpaa_eth: fix DMA mapping leak

On the error path some fragments remain DMA mapped. Adding a fix
that unmaps all the fragments. Rework cleanup path to be simpler.

Fixes: ccf131906849 ("dpaa_eth: use page backed rx buffers")
Signed-off-by: Madalin Bucur <madalin.bucur@oss.nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c