diff options
-rw-r--r-- | crypto/algapi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/algapi.c b/crypto/algapi.c index e7a9a2ada2cf..ea9ed9580aa8 100644 --- a/crypto/algapi.c +++ b/crypto/algapi.c @@ -464,8 +464,7 @@ void crypto_unregister_alg(struct crypto_alg *alg) if (WARN_ON(refcount_read(&alg->cra_refcnt) != 1)) return; - if (alg->cra_destroy) - alg->cra_destroy(alg); + crypto_alg_put(alg); crypto_remove_final(&list); } |