net/mlx5: fix leak on ASO age pools resize failure
authorMichael Baum <michaelba@nvidia.com>
Wed, 11 Nov 2020 07:36:46 +0000 (07:36 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Sat, 14 Nov 2020 00:36:19 +0000 (01:36 +0100)
commit436973b0d1c9e5290c585c3e05d164d3745221f4
treea9259dbdf3b1c3d1d48865972c7cd3b2d71a8e6c
parent41217cec2faa5ab5cf0a0a714135ed49b80911b5
net/mlx5: fix leak on ASO age pools resize failure

In ASO age pools resize, the PMD starts ASO data-path.

When starting ASO data-path is failed, the pools memory was not freed
what caused a memory leak.

Free it.

Fixes: f935ed4b645a ("net/mlx5: support flow hit action for aging")

Signed-off-by: Michael Baum <michaelba@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/mlx5_flow_dv.c