diff options
Diffstat (limited to 'cryptodev_cipher.c')
-rw-r--r-- | cryptodev_cipher.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cryptodev_cipher.c b/cryptodev_cipher.c index 0446a5d..05e6db3 100644 --- a/cryptodev_cipher.c +++ b/cryptodev_cipher.c @@ -258,6 +258,13 @@ int ret; ahash_request_set_callback(hdata->async.request, CRYPTO_TFM_REQ_MAY_BACKLOG, cryptodev_complete, hdata->async.result); + ret = crypto_ahash_init(hdata->async.request); + if (unlikely(ret)) { + dprintk(0,KERN_ERR, + "error in crypto_hash_init()\n"); + goto error; + } + hdata->init = 1; return 0; |