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

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>

+1 -1
+1 -1
crypto/cryptd.c
··· 945 945 crypto_unregister_template(&cryptd_tmpl); 946 946 } 947 947 948 - module_init(cryptd_init); 948 + subsys_initcall(cryptd_init); 949 949 module_exit(cryptd_exit); 950 950 951 951 MODULE_LICENSE("GPL");