author: Ard Biesheuvel <ardb@kernel.org> 2021-03-02 21:33:03 +0100
committer: Herbert Xu <herbert@gondor.apana.org.au> 2021-03-13 00:04:01 +1100
commit: 83681f2bebb34dbb3f03fecd8f570308ab8b7c2c
parent: 98b5ef3e97b16eaeeedb936f8bda3594ff84a70e
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/crypto/api.c b/crypto/api.c
index ed08cbd5b9d3..c4eda56cff89 100644
--- a/crypto/api.c
+++ b/crypto/api.c
@@ -562,7 +562,7 @@ void crypto_destroy_tfm(void *mem, struct crypto_tfm *tfm)
{
struct crypto_alg *alg;
- if (unlikely(!mem))
+ if (IS_ERR_OR_NULL(mem))
return;
alg = tfm->__crt_alg;