Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: ef93f1562803 ("Revert "crypto: run initcalls for generic implementations earlier"")
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Eric Biggers and committed by
Herbert Xu
40a98e70 19272b37

+1 -1
+1 -1
crypto/hkdf.c
··· 566 566 567 567 static void __exit crypto_hkdf_module_exit(void) {} 568 568 569 - module_init(crypto_hkdf_module_init); 569 + late_initcall(crypto_hkdf_module_init); 570 570 module_exit(crypto_hkdf_module_exit); 571 571 572 572 MODULE_LICENSE("GPL");