mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 08:31:13 +00:00
crypto: engine - Use crypto_request_complete
[ Upstream commit6909823d47
] 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:4140aafcff
("crypto: engine - fix crypto_queue backlog handling") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
fe93b16290
commit
1c280eb8d6
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
@ -130,7 +130,7 @@ start_request:
|
|||
engine->cur_req = async_req;
|
||||
|
||||
if (backlog)
|
||||
backlog->complete(backlog, -EINPROGRESS);
|
||||
crypto_request_complete(backlog, -EINPROGRESS);
|
||||
|
||||
if (engine->busy)
|
||||
was_busy = true;
|
||||
|
@ -214,7 +214,7 @@ req_err_1:
|
|||
}
|
||||
|
||||
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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue