git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net/txgbe: fix queue statistics mapping
[dpdk.git]
/
drivers
/
crypto
/
mlx5
/
mlx5_crypto_dek.c
diff --git
a/drivers/crypto/mlx5/mlx5_crypto_dek.c
b/drivers/crypto/mlx5/mlx5_crypto_dek.c
index
de0d254
..
472ee37
100644
(file)
--- a/
drivers/crypto/mlx5/mlx5_crypto_dek.c
+++ b/
drivers/crypto/mlx5/mlx5_crypto_dek.c
@@
-156,6
+156,8
@@
mlx5_crypto_dek_setup(struct mlx5_crypto_priv *priv)
void
mlx5_crypto_dek_unset(struct mlx5_crypto_priv *priv)
{
- mlx5_hlist_destroy(priv->dek_hlist);
- priv->dek_hlist = NULL;
+ if (priv->dek_hlist) {
+ mlx5_hlist_destroy(priv->dek_hlist);
+ priv->dek_hlist = NULL;
+ }
}