diff options
author | Linus Torvalds | 2021-11-12 12:35:46 -0800 |
---|---|---|
committer | Linus Torvalds | 2021-11-12 12:35:46 -0800 |
commit | 66f4beaa6c1d28161f534471484b2daa2de1dce0 (patch) | |
tree | ae7826e7f322b1be3cb6efdf4db938b30aedeffd | |
parent | 6cbcc7ab2147d721700029a78558dc0ea4207153 (diff) | |
parent | beaaaa37c664e9afdf2913aee19185d8e3793b50 (diff) |
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
-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 d379fd91fb7b..a366cb3e8aa1 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); |