Merge branch 'random-5.17-rc1-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-microblaze.git] / crypto / algapi.c
index d379fd9..a366cb3 100644 (file)
@@ -284,6 +284,8 @@ static struct crypto_larval *__crypto_register_alg(struct crypto_alg *alg)
 
        if (larval)
                list_add(&larval->alg.cra_list, &crypto_alg_list);
+       else
+               alg->cra_flags |= CRYPTO_ALG_TESTED;
 
        crypto_stats_init(alg);