net/mlx5: fix leak on ASO SQ creation failure
authorMichael Baum <michaelba@nvidia.com>
Wed, 6 Jan 2021 08:19:25 +0000 (08:19 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 14 Jan 2021 09:12:36 +0000 (10:12 +0100)
commit0e8273176e60d813a8a905e4ce38bbd18a1e2470
tree56f96d0153a29735ae9cd9e82a99228b2c7f9f27
parent4a7f979af28ee94080a5cb02dd21493aa4363777
net/mlx5: fix leak on ASO SQ creation failure

In ASO SQ creation, the PMD allocates umem buffer for SQ.

When umem buffer allocation fails, the MR and CQ memory are not freed
what caused a memory leak.

Free it.

Fixes: f935ed4b645a ("net/mlx5: support flow hit action for aging")
Cc: stable@dpdk.org
Signed-off-by: Michael Baum <michaelba@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/mlx5_flow_age.c