summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/crypto/tegra-cryptodev.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/drivers/crypto/tegra-cryptodev.c b/drivers/crypto/tegra-cryptodev.c
index e9bc70cdb..43a060535 100644
--- a/drivers/crypto/tegra-cryptodev.c
+++ b/drivers/crypto/tegra-cryptodev.c
@@ -357,16 +357,22 @@ static int process_crypt_req(struct file *filp, struct tegra_crypto_ctx *ctx,
357 /* crypto driver is asynchronous */ 357 /* crypto driver is asynchronous */
358 ret = wait_for_completion_timeout(&tcrypt_complete.restart, 358 ret = wait_for_completion_timeout(&tcrypt_complete.restart,
359 msecs_to_jiffies(5000)); 359 msecs_to_jiffies(5000));
360 if (ret == 0) 360 if (ret == 0) {
361 pr_err("%scrypt timed out\n",
362 crypt_req->encrypt ? "en" : "de");
363 ret = -ENODATA;
361 goto process_req_buf_out; 364 goto process_req_buf_out;
365 }
362 366
363 if (tcrypt_complete.req_err < 0) { 367 if (tcrypt_complete.req_err < 0) {
364 ret = tcrypt_complete.req_err; 368 ret = tcrypt_complete.req_err;
369 pr_err("%scrypt failed (%d)\n",
370 crypt_req->encrypt ? "en" : "de", ret);
365 goto process_req_buf_out; 371 goto process_req_buf_out;
366 } 372 }
367 } else if (ret < 0) { 373 } else if (ret < 0) {
368 pr_debug("%scrypt failed (%d)\n", 374 pr_err("%scrypt failed (%d)\n",
369 crypt_req->encrypt ? "en" : "de", ret); 375 crypt_req->encrypt ? "en" : "de", ret);
370 goto process_req_buf_out; 376 goto process_req_buf_out;
371 } 377 }
372 378