Skip to content

Commit 6909823

Browse files
committed
crypto: engine - Use crypto_request_complete
Use the crypto_request_complete helper instead of calling the completion function directly. Signed-off-by: Herbert Xu <[email protected]>
1 parent d577067 commit 6909823

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crypto/crypto_engine.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ static void crypto_finalize_request(struct crypto_engine *engine,
5454
}
5555
}
5656
lockdep_assert_in_softirq();
57-
req->complete(req, err);
57+
crypto_request_complete(req, err);
5858

5959
kthread_queue_work(engine->kworker, &engine->pump_requests);
6060
}
@@ -130,7 +130,7 @@ static void crypto_pump_requests(struct crypto_engine *engine,
130130
engine->cur_req = async_req;
131131

132132
if (backlog)
133-
backlog->complete(backlog, -EINPROGRESS);
133+
crypto_request_complete(backlog, -EINPROGRESS);
134134

135135
if (engine->busy)
136136
was_busy = true;
@@ -214,7 +214,7 @@ static void crypto_pump_requests(struct crypto_engine *engine,
214214
}
215215

216216
req_err_2:
217-
async_req->complete(async_req, ret);
217+
crypto_request_complete(async_req, ret);
218218

219219
retry:
220220
/* If retry mechanism is supported, send new requests to engine */

0 commit comments

Comments
 (0)