diff options
author | Ioana Ciornei <ioana.ciornei@nxp.com> | 2021-02-11 21:51:22 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-02-11 18:15:15 -0800 |
commit | e12be9139cca26d689fe1a9257054b76752f725b (patch) | |
tree | a49b05a947a0672e337fdca7b5fc924e79a58366 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | e185ea30df1f6fee40d10ea98e6e11f9af9846d4 (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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions