diff mbox series

crypto: hkdf - move to late_initcall

Message ID 20250610191600.54994-1-ebiggers@kernel.org
State New
Headers show
Series crypto: hkdf - move to late_initcall | expand

Commit Message

Eric Biggers June 10, 2025, 7:16 p.m. UTC
From: Eric Biggers <ebiggers@google.com>

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 <ebiggers@google.com>
---
 crypto/hkdf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


base-commit: 19272b37aa4f83ca52bdf9c16d5d81bdd1354494
diff mbox series

Patch

diff --git a/crypto/hkdf.c b/crypto/hkdf.c
index f24c2a8d4df99..82d1b32ca6ce4 100644
--- a/crypto/hkdf.c
+++ b/crypto/hkdf.c
@@ -564,10 +564,10 @@  static int __init crypto_hkdf_module_init(void)
 	return 0;
 }
 
 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");
 MODULE_DESCRIPTION("HMAC-based Key Derivation Function (HKDF)");