diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2021-11-12 12:35:46 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-11-12 12:35:46 -0800 |
commit | 1ef6807809c63f73359b17ecfedd9836ec25b97c (patch) | |
tree | 1a8b07f3ba7629c7a0fa9a777ecc174aa1b77893 /crypto/algapi.c | |
parent | d2acfeacd6ea2365da6f95826ded156b15029cdd (diff) | |
parent | 40fff69cb156110149db1d161c810720c2776f15 (diff) | |
download | linux-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.c | 2 |
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); |