Skip to content

Commit 40a98e7

Browse files
ebiggersherbertx
authored andcommitted
crypto: hkdf - move to late_initcall
The HKDF self-tests depend on the HMAC algorithms being registered. HMAC is now registered at module_init, which put it at the same level as HKDF. Move HKDF to late_initcall so that it runs afterwards. Fixes: ef93f15 ("Revert "crypto: run initcalls for generic implementations earlier"") Signed-off-by: Eric Biggers <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 19272b3 commit 40a98e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crypto/hkdf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ static int __init crypto_hkdf_module_init(void)
566566

567567
static void __exit crypto_hkdf_module_exit(void) {}
568568

569-
module_init(crypto_hkdf_module_init);
569+
late_initcall(crypto_hkdf_module_init);
570570
module_exit(crypto_hkdf_module_exit);
571571

572572
MODULE_LICENSE("GPL");

0 commit comments

Comments
 (0)