]> git.droids-corp.org - dpdk.git/commit
crypto/mlx5: fix freeing on probing failure
authorRaja Zidane <rzidane@nvidia.com>
Mon, 8 Nov 2021 13:09:19 +0000 (13:09 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 8 Nov 2021 18:46:28 +0000 (19:46 +0100)
commit56faca3bc109cd6c3e826e09a1a7b15171fcd81f
tree94d25b493c83a6a66c3deb966fc0a0f5221526e9
parent54feeab1c01486ca7b393271ba9e334788a243fd
crypto/mlx5: fix freeing on probing failure

When calling device close, unset dek is called which destroys a hash list.
In case of error during dev probe, close is called when dek hlist is not
initialized.
Ensure non null list destroy.

Fixes: 90646d6c6e22 ("crypto/mlx5: support basic operations")
Cc: stable@dpdk.org
Signed-off-by: Raja Zidane <rzidane@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/crypto/mlx5/mlx5_crypto_dek.c