Michael Baum c76db6a496 net/mlx5: fix memory leak on context allocation failure
In shared device context creation, there is a missing validation when
one of the btree memory allocation fails that will cause a memory leak.

This adds a proper check to clean resources in case of failure.

Fixes: 632f0f19056f ("net/mlx5: manage shared counters in three-level table")
Cc: stable@dpdk.org

Signed-off-by: Michael Baum <michaelba@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
2021-09-20 16:33:40 +02:00
..
2021-08-17 08:37:52 +02:00
2021-08-17 08:37:52 +02:00
2021-08-17 08:37:52 +02:00
2021-08-17 08:37:52 +02:00
2021-08-17 08:37:52 +02:00
2021-08-17 08:37:52 +02:00
2021-08-17 08:37:52 +02:00
2021-09-07 19:07:46 +02:00
2021-08-10 05:01:57 +02:00
2021-09-09 19:35:40 +02:00
2021-09-15 03:28:24 +02:00
2021-09-22 09:27:12 +02:00
2021-08-17 08:37:52 +02:00
2021-09-06 03:46:22 +02:00
2021-08-17 08:37:52 +02:00
2021-08-17 08:37:52 +02:00
2021-08-17 08:37:52 +02:00
2021-08-17 08:37:52 +02:00
2021-08-17 08:37:52 +02:00
2021-09-07 19:07:46 +02:00
2021-08-17 08:37:52 +02:00
2021-08-17 08:37:52 +02:00
2021-09-09 15:30:32 +02:00
2021-08-17 08:37:52 +02:00
2021-09-15 17:11:56 +02:00
2021-08-17 08:37:52 +02:00
2021-09-15 09:26:23 +02:00
2021-08-17 08:37:52 +02:00
2021-08-17 08:37:52 +02:00
2021-08-17 08:37:52 +02:00