Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b2bac6ac authored by Herbert Xu's avatar Herbert Xu
Browse files

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: default avatarJosh Boyer <jwboyer@redhat.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 4619b6bd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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");