]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitea7f9664cadb461bb5f4c3acb4b2c2eeba3aefb8
tree9f1958106c7d99d5c833e44ccb60a34349308aba
parent6782df22961ead911785a48ba349b5217df61a5a
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: b31130f094a1 ("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