提交 beaaaa37 编写于 作者: H Herbert Xu

crypto: api - Fix boot-up crash when crypto manager is disabled

When the crypto manager is disabled, we need to explicitly set
the crypto algorithms' tested status so that they can be used.

Fixes: cad439fc ("crypto: api - Do not create test larvals if...")
Reported-by: NGeert Uytterhoeven <geert@linux-m68k.org>
Reported-by: NIdo Schimmel <idosch@idosch.org>
Reported-by: NGuenter Roeck <linux@roeck-us.net>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
Tested-by: NIdo Schimmel <idosch@nvidia.com>
Tested-by: NGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 39ef0851
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册