Re: [PATCH v2] net/af_xdp: fix memzone leak in error path

2023-12-06 Thread Ferruh Yigit
On 12/5/2023 1:16 PM, Loftus, Ciara wrote: >> >> In xdp_umem_configure() allocated memzone for the 'umem', we should >> free it when xsk_umem__create() call fails, otherwise it will lead to >> memory zone leak. To fix it move 'umem->mz = mz;' assignment after >> 'mz == NULL' check. >> >> Fixes: f1d

RE: [PATCH v2] net/af_xdp: fix memzone leak in error path

2023-12-05 Thread Loftus, Ciara
> > In xdp_umem_configure() allocated memzone for the 'umem', we should > free it when xsk_umem__create() call fails, otherwise it will lead to > memory zone leak. To fix it move 'umem->mz = mz;' assignment after > 'mz == NULL' check. > > Fixes: f1debd77efaf ("net/af_xdp: introduce AF_XDP PMD") >