mirror of
https://github.com/torvalds/linux.git
synced 2026-05-22 14:12:07 +02:00
crypto: iaa - Switch to ACOMP_FBREQ_ON_STACK
Rather than copying the request by hand, use the ACOMP_FBREQ_ON_STACK helper to do it. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
05fa2c6e87
commit
d0a5c9d079
|
|
@ -999,12 +999,9 @@ static inline int check_completion(struct device *dev,
|
|||
|
||||
static int deflate_generic_decompress(struct acomp_req *req)
|
||||
{
|
||||
ACOMP_REQUEST_ON_STACK(fbreq, crypto_acomp_reqtfm(req));
|
||||
ACOMP_FBREQ_ON_STACK(fbreq, req);
|
||||
int ret;
|
||||
|
||||
acomp_request_set_callback(fbreq, 0, NULL, NULL);
|
||||
acomp_request_set_params(fbreq, req->src, req->dst, req->slen,
|
||||
req->dlen);
|
||||
ret = crypto_acomp_decompress(fbreq);
|
||||
req->dlen = fbreq->dlen;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user