summaryrefslogtreecommitdiffstats
path: root/cryptodev_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'cryptodev_main.c')
-rw-r--r--cryptodev_main.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/cryptodev_main.c b/cryptodev_main.c
index f99c71a..4cdb90d 100644
--- a/cryptodev_main.c
+++ b/cryptodev_main.c
@@ -780,10 +780,18 @@ cryptodev_register(void)
ncr_limits_init();
ncr_master_key_reset();
+
+ rc = ncr_pk_queue_init();
+ if (unlikely(rc)) {
+ ncr_limits_deinit();
+ printk(KERN_ERR PFX "initialization of PK workqueue failed\n");
+ return rc;
+ }
rc = misc_register (&cryptodev);
if (unlikely(rc)) {
ncr_limits_deinit();
+ ncr_pk_queue_deinit();
printk(KERN_ERR PFX "registration of /dev/crypto failed\n");
return rc;
}
@@ -796,10 +804,10 @@ cryptodev_deregister(void)
{
misc_deregister(&cryptodev);
ncr_limits_deinit();
+ ncr_pk_queue_deinit();
}
/* ====== Module init/exit ====== */
-
int __init init_cryptodev(void)
{
int rc;