Commit cd504c8e authored by Herbert Xu's avatar Herbert Xu Committed by Eric Biggers
Browse files

UPSTREAM: 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>

Bug: 256875295
(cherry picked from commit cad439fc)
Change-Id: I4e0e0b2022dc060fc1d84744e04beae411165ad0
Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
parent 6be35204
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment