summaryrefslogtreecommitdiffstats
path: root/crypto/crypto_engine.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/crypto_engine.c')
-rw-r--r--crypto/crypto_engine.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/crypto/crypto_engine.c b/crypto/crypto_engine.c
index 412149e8e3dc..3655d9d3f5df 100644
--- a/crypto/crypto_engine.c
+++ b/crypto/crypto_engine.c
@@ -169,13 +169,10 @@ start_request:
/*
* If hardware queue is full (-ENOSPC), requeue request
* regardless of backlog flag.
- * If hardware throws any other error code,
- * requeue only backlog requests.
* Otherwise, unprepare and complete the request.
*/
if (!engine->retry_support ||
- ((ret != -ENOSPC) &&
- !(async_req->flags & CRYPTO_TFM_REQ_MAY_BACKLOG))) {
+ (ret != -ENOSPC)) {
dev_err(engine->dev,
"Failed to do one request from queue: %d\n",
ret);