]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/crypto/ccp/ccp-dev.c
crypto: ccp - Clean up the LSB slot allocation code
[karo-tx-linux.git] / drivers / crypto / ccp / ccp-dev.c
index c25515a80d33230e76265f14c0dfded7eff779bb..511ab042b5e7939b008045129de0c9e268f2db46 100644 (file)
@@ -478,6 +478,10 @@ struct ccp_device *ccp_alloc_struct(struct device *dev)
        ccp->sb_count = KSB_COUNT;
        ccp->sb_start = 0;
 
+       /* Initialize the wait queues */
+       init_waitqueue_head(&ccp->sb_queue);
+       init_waitqueue_head(&ccp->suspend_queue);
+
        ccp->ord = ccp_increment_unit_ordinal();
        snprintf(ccp->name, MAX_CCP_NAME_LEN, "ccp-%u", ccp->ord);
        snprintf(ccp->rngname, MAX_CCP_NAME_LEN, "ccp-%u-rng", ccp->ord);