numam-dpdk/drivers/crypto/mlx5
Michael Baum 56ec985f31 crypto/mlx5: fix leaks on probing failure
In crypto driver probing, there are two validations after context
allocation.

When one of them fails, the context structure was not freed what caused
a memory leak.

Free it.

Fixes: debb27ea34 ("crypto/mlx5: create login object using DevX")
Fixes: e8db4413cb ("crypto/mlx5: add keytag configuration")
Cc: stable@dpdk.org

Signed-off-by: Michael Baum <michaelba@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
2021-07-30 21:08:19 +02:00
..
meson.build crypto/mlx5: add DEK object management 2021-07-20 21:48:32 +02:00
mlx5_crypto_dek.c crypto/mlx5: add DEK object management 2021-07-20 21:48:32 +02:00
mlx5_crypto_utils.h crypto/mlx5: introduce Mellanox crypto driver 2021-07-20 21:45:58 +02:00
mlx5_crypto.c crypto/mlx5: fix leaks on probing failure 2021-07-30 21:08:19 +02:00
mlx5_crypto.h crypto/mlx5: migrate to bus-agnostic common interface 2021-07-22 00:11:14 +02:00
version.map crypto/mlx5: introduce Mellanox crypto driver 2021-07-20 21:45:58 +02:00