diff options
| author | 2021-02-11 21:51:22 +0200 | |
|---|---|---|
| committer | 2021-02-11 18:15:15 -0800 | |
| commit | e12be9139cca26d689fe1a9257054b76752f725b (patch) | |
| tree | a49b05a947a0672e337fdca7b5fc924e79a58366 /include/linux/phy/git:/ssh: | |
| parent | enetc: auto select PHYLIB and MDIO_DEVRES (diff) | |
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: d678be1dc1ec ("dpaa2-eth: add XDP_REDIRECT support")
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/phy/git:/ssh:')
0 files changed, 0 insertions, 0 deletions
