crypto: api - Fix boot-up crash when crypto manager is disabled
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 5 Nov 2021 07:26:08 +0000 (15:26 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 9 Nov 2021 05:45:48 +0000 (13:45 +0800)
commitbeaaaa37c664e9afdf2913aee19185d8e3793b50
tree9f1958106c7d99d5c833e44ccb60a34349308aba
parent39ef08517082a424b5b65c3dbaa6c0fa9d3303b9
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: cad439fc040e ("crypto: api - Do not create test larvals if...")
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reported-by: Ido Schimmel <idosch@idosch.org>
Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Tested-by: Ido Schimmel <idosch@nvidia.com>
Tested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/algapi.c