summaryrefslogtreecommitdiff
path: root/crypto/algapi.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2021-11-12 12:35:46 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2021-11-12 12:35:46 -0800
commit1ef6807809c63f73359b17ecfedd9836ec25b97c (patch)
tree1a8b07f3ba7629c7a0fa9a777ecc174aa1b77893 /crypto/algapi.c
parentd2acfeacd6ea2365da6f95826ded156b15029cdd (diff)
parent40fff69cb156110149db1d161c810720c2776f15 (diff)
downloadlinux-crypto-1ef6807809c63f73359b17ecfedd9836ec25b97c.tar.gz
linux-crypto-1ef6807809c63f73359b17ecfedd9836ec25b97c.zip
Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
Pull crypto fix from Herbert Xu: "This fixes a boot crash regression" * 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6: crypto: api - Fix boot-up crash when crypto manager is disabled
Diffstat (limited to 'crypto/algapi.c')
-rw-r--r--crypto/algapi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/algapi.c b/crypto/algapi.c
index d379fd91..a366cb3e 100644
--- a/crypto/algapi.c
+++ b/crypto/algapi.c
@@ -284,6 +284,8 @@ static struct crypto_larval *__crypto_register_alg(struct crypto_alg *alg)
if (larval)
list_add(&larval->alg.cra_list, &crypto_alg_list);
+ else
+ alg->cra_flags |= CRYPTO_ALG_TESTED;
crypto_stats_init(alg);