projects/linux·commit 40a98e70

crypto: hkdf - move to late_initcall

40a98e70 · Eric Biggers <[email protected]> · 2025-06-10 12:16:00 -07:00

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: ef93f1562803 ("Revert "crypto: run initcalls for generic implementations earlier"")
Signed-off-by: Eric Biggers <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Commit
40a98e702b528c631094f2e524d309faf33dc774
Parents
19272b37

Changes

1 files changed · +1 −1

FileStatusAddDelContent
crypto/hkdf.cmodified+1−1View file

crypto/hkdf.c

View file
diff --git a/crypto/hkdf.c b/crypto/hkdf.c
index f24c2a8..82d1b32 100644
--- a/crypto/hkdf.c
+++ b/crypto/hkdf.c
@@ -566,7 +566,7 @@ static int __init crypto_hkdf_module_init(void)
static void __exit crypto_hkdf_module_exit(void) {}
-module_init(crypto_hkdf_module_init);
+late_initcall(crypto_hkdf_module_init);
module_exit(crypto_hkdf_module_exit);
MODULE_LICENSE("GPL");