mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
crypto: crypto_wq - Fix late crypto work queue initialization
commit 130fa5bc81
upstream.
The crypto algorithm modules utilizing the crypto daemon could
be used early when the system start up. Using module_init
does not guarantee that the daemon's work queue is initialized
when the cypto alorithm depending on crypto_wq starts. It is necessary
to initialize the crypto work queue earlier at the subsystem
init time to make sure that it is initialized
when used.
Signed-off-by: Tim Chen <tim.c.chen@linux.intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
3cf2aab961
commit
2e6c336b4e
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ static void __exit crypto_wq_exit(void)
|
||||||
destroy_workqueue(kcrypto_wq);
|
destroy_workqueue(kcrypto_wq);
|
||||||
}
|
}
|
||||||
|
|
||||||
module_init(crypto_wq_init);
|
subsys_initcall(crypto_wq_init);
|
||||||
module_exit(crypto_wq_exit);
|
module_exit(crypto_wq_exit);
|
||||||
|
|
||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
|
|
Loading…
Reference in a new issue