mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] crypto: ecrdsa - use subsys_initcall instead of module_init
@ 2020-10-15 11:02 Tianjia Zhang
  2020-10-15 12:05 ` Herbert Xu
  0 siblings, 1 reply; 6+ messages in thread
From: Tianjia Zhang @ 2020-10-15 11:02 UTC (permalink / raw)
  To: Herbert Xu, David S. Miller, Vitaly Chikunov, linux-crypto, linux-kernel
  Cc: Tianjia Zhang

All templates and generic algorithms have been registered in
subsys_initcall instead of module_init. The ecrdsa algorithm
happened to be missed. Here is a fix for it.

Cc: Vitaly Chikunov <vt@altlinux.org>
Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
---
 crypto/ecrdsa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crypto/ecrdsa.c b/crypto/ecrdsa.c
index 6a3fd09057d0..ca9a34356f80 100644
--- a/crypto/ecrdsa.c
+++ b/crypto/ecrdsa.c
@@ -288,7 +288,7 @@ static void __exit ecrdsa_mod_fini(void)
 	crypto_unregister_akcipher(&ecrdsa_alg);
 }
 
-module_init(ecrdsa_mod_init);
+subsys_initcall(ecrdsa_mod_init);
 module_exit(ecrdsa_mod_fini);
 
 MODULE_LICENSE("GPL");
-- 
2.19.1.3.ge56e4f7


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-12-01  8:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-15 11:02 [PATCH] crypto: ecrdsa - use subsys_initcall instead of module_init Tianjia Zhang
2020-10-15 12:05 ` Herbert Xu
2020-11-30  2:21   ` Tianjia Zhang
2020-11-30  2:24     ` Herbert Xu
2020-11-30  6:54       ` Tianjia Zhang
2020-12-01  8:37         ` Ard Biesheuvel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®