Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/af_xdp: fix memzone leak on config failure
[ upstream commit 960775fc5b7d43cfbf9fa31e4c0b36c4da79615a ] 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: f1debd7 ("net/af_xdp: introduce AF_XDP PMD") Signed-off-by: Yunjian Wang <wangyunjian@huawei.com> Acked-by: Ciara Loftus <ciara.loftus@intel.com> Acked-by: Ferruh Yigit <ferruh.yigit@amd.com>
- Loading branch information