Files
linux/drivers/net/ethernet/freescale/dpaa2
Ioana Ciornei e12be9139c dpaa2-eth: fix memory leak in XDP_REDIRECT
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>
2021-02-11 18:15:15 -08: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