diff options
Diffstat (limited to 'cryptodev_cipher.c')
-rw-r--r-- | cryptodev_cipher.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cryptodev_cipher.c b/cryptodev_cipher.c index 19841e1..a1e61f1 100644 --- a/cryptodev_cipher.c +++ b/cryptodev_cipher.c @@ -273,7 +273,11 @@ error: void cryptodev_hash_deinit(struct hash_data* hdata) { if (hdata->init) { - crypto_free_ahash(hdata->async.s); + if (hdata->async.request) + ahash_request_free(hdata->async.request); + kfree(hdata->async.result); + if (hdata->async.s) + crypto_free_ahash(hdata->async.s); hdata->init = 0; } } |