[PATCH 21.11] net/af_xdp: fix leak on XSK configuration failure

Kevin Traynor ktraynor at redhat.com
Thu Apr 18 14:30:53 CEST 2024


On 08/04/2024 13:03, Yunjian Wang wrote:
> [ upstream commit 955acb9594cec548ae57319bfc99d4297d773675 ]
> 
> In xdp_umem_configure() allocated some resources for the
> xsk umem, we should delete them when xsk configure fails,
> otherwise it will lead to resources leak.
> 
> Fixes: f1debd77efaf ("net/af_xdp: introduce AF_XDP PMD")
> 
> Signed-off-by: Yunjian Wang <wangyunjian at huawei.com>
> Reviewed-by: Ciara Loftus <ciara.loftus at intel.com>
> Acked-by: Ferruh Yigit <ferruh.yigit at amd.com>
> ---
>  drivers/net/af_xdp/rte_eth_af_xdp.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)

Thanks Yunjian. I have pushed to 21.11 branch.

Kevin.



More information about the stable mailing list