diff --git a/crypto/algapi.c b/crypto/algapi.c index b3a608604253..f287085a21fa 100644 --- a/crypto/algapi.c +++ b/crypto/algapi.c @@ -1059,6 +1059,8 @@ static void __init crypto_start_tests(void) if (IS_ENABLED(CONFIG_CRYPTO_MANAGER_DISABLE_TESTS)) return; + set_crypto_boot_test_finished(); + for (;;) { struct crypto_larval *larval = NULL; struct crypto_alg *q; @@ -1091,8 +1093,6 @@ static void __init crypto_start_tests(void) crypto_wait_for_test(larval); } - - set_crypto_boot_test_finished(); } static int __init crypto_algapi_init(void)