Skip to content
Commit cad439fc authored by Herbert Xu's avatar Herbert Xu
Browse files

crypto: api - Do not create test larvals if manager is disabled



The delayed boot-time testing patch created a dependency loop
between api.c and algapi.c because it added a crypto_alg_tested
call to the former when the crypto manager is disabled.

We could instead avoid creating the test larvals if the crypto
manager is disabled.  This avoids the dependency loop as well
as saving some unnecessary work, albeit in a very unlikely case.

Reported-by: default avatarNathan Chancellor <nathan@kernel.org>
Reported-by: default avatarNaresh Kamboju <naresh.kamboju@linaro.org>
Reported-by: default avatarkernel test robot <lkp@intel.com>
Fixes: adad556e ("crypto: api - Fix built-in testing dependency failures")
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 3ae88f67
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment