Files
android_kernel_xiaomi_sm8450/drivers/net/ethernet/freescale/dpaa2
Ioana Ciornei a5ff8b798a dpaa2-eth: fix memory leak in XDP_REDIRECT
[ Upstream commit e12be9139cca26d689fe1a9257054b76752f725b ]

If xdp_do_redirect() fails, the calling driver should handle recycling
or freeing of the page associated with the frame. The dpaa2-eth driver
didn't do either of them and just incremented a counter.
Fix this by trying to DMA map back the page and recycle it or, if the
mapping fails, just free it.

Fixes: d678be1dc1 ("dpaa2-eth: add XDP_REDIRECT support")
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-04 11:37:31 +01:00
..
2019-11-07 15:31:53 -08:00
2019-11-07 15:31:53 -08:00
2019-06-15 13:43:06 -07:00
2020-10-02 16:31:56 -07:00