Skip to content

Commit 66f4bea

Browse files
committed
Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
Pull crypto fix from Herbert Xu: "This fixes a boot crash regression" * 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6: crypto: api - Fix boot-up crash when crypto manager is disabled
2 parents 6cbcc7a + beaaaa3 commit 66f4bea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crypto/algapi.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,8 @@ static struct crypto_larval *__crypto_register_alg(struct crypto_alg *alg)
284284

285285
if (larval)
286286
list_add(&larval->alg.cra_list, &crypto_alg_list);
287+
else
288+
alg->cra_flags |= CRYPTO_ALG_TESTED;
287289

288290
crypto_stats_init(alg);
289291

0 commit comments

Comments
 (0)