Skip to content

Commit

Permalink
crypto: engine - Use crypto_request_complete
Browse files Browse the repository at this point in the history
[ Upstream commit 6909823 ]

Use the crypto_request_complete helper instead of calling the
completion function directly.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Stable-dep-of: 4140aaf ("crypto: engine - fix crypto_queue backlog handling")
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
herbertx authored and gregkh committed May 17, 2023
1 parent 6ba620f commit 14a2259
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crypto/crypto_engine.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ static void crypto_finalize_request(struct crypto_engine *engine,
}
}
lockdep_assert_in_softirq();
req->complete(req, err);
crypto_request_complete(req, err);

kthread_queue_work(engine->kworker, &engine->pump_requests);
}
Expand Down Expand Up @@ -130,7 +130,7 @@ static void crypto_pump_requests(struct crypto_engine *engine,
engine->cur_req = async_req;

if (backlog)
backlog->complete(backlog, -EINPROGRESS);
crypto_request_complete(backlog, -EINPROGRESS);

if (engine->busy)
was_busy = true;
Expand Down Expand Up @@ -214,7 +214,7 @@ static void crypto_pump_requests(struct crypto_engine *engine,
}

req_err_2:
async_req->complete(async_req, ret);
crypto_request_complete(async_req, ret);

retry:
/* If retry mechanism is supported, send new requests to engine */
Expand Down

0 comments on commit 14a2259

Please sign in to comment.