summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2011-08-19 10:11:23 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2011-08-20 10:08:03 +0200
commitb2bac6acf86d05d8af0499f37d91ecac15722803 (patch)
tree98208400b0ff6976fdcb4945cd32468fa00b002e /crypto
parentcrypto: sha - Fix build error due to crypto_sha1_update (diff)
downloadlinux-b2bac6acf86d05d8af0499f37d91ecac15722803.tar.xz
linux-b2bac6acf86d05d8af0499f37d91ecac15722803.zip
crypto: cryptd - Use subsys_initcall to prevent races with aesni
As cryptd is depeneded on by other algorithms such as aesni-intel, it needs to be registered before them. When everything is built as modules, this occurs naturally. However, for this to work when they are built-in, we need to use subsys_initcall in cryptd. Tested-by: Josh Boyer <jwboyer@redhat.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/cryptd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/cryptd.c b/crypto/cryptd.c
index e46d21ae26bc..671d4d6d14df 100644
--- a/crypto/cryptd.c
+++ b/crypto/cryptd.c
@@ -945,7 +945,7 @@ static void __exit cryptd_exit(void)
crypto_unregister_template(&cryptd_tmpl);
}
-module_init(cryptd_init);
+subsys_initcall(cryptd_init);
module_exit(cryptd_exit);
MODULE_LICENSE("GPL");