crypto: cryptd - Use subsys_initcall to prevent races with aesni
commit48384756ccd3b787829007c48a29b8fada46beb8
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 19 Aug 2011 08:11:23 +0000 (19 16:11 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Nov 2011 17:44:47 +0000 (11 09:44 -0800)
tree6a412fd198bd17f09e24b8ef9365dadf6d64a5c4
parentca9b9d7bf6fc89a8a72c6aa37c683d02b7782b0b
crypto: cryptd - Use subsys_initcall to prevent races with aesni

commit b2bac6acf86d05d8af0499f37d91ecac15722803 upstream.

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>
Cc: Kerin Millar <kerframil@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
crypto/cryptd.c