Commit 0406b6fe7d5a89d1decfaa2d69552b9dd26cd700

Authored by Tim Chen
Committed by Jiri Slaby
1 parent 9c660fc8da

crypto: crypto_wq - Fix late crypto work queue initialization

commit 130fa5bc81b44b6cc1fbdea3abf6db0da22964e0 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: Jiri Slaby <jslaby@suse.cz>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -33,7 +33,7 @@
33 33 destroy_workqueue(kcrypto_wq);
34 34 }
35 35  
36   -module_init(crypto_wq_init);
  36 +subsys_initcall(crypto_wq_init);
37 37 module_exit(crypto_wq_exit);
38 38  
39 39 MODULE_LICENSE("GPL");