mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-12 01:20:14 +00: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 @@ out:
|
||||
|
||||
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…
x
Reference in New Issue
Block a user