mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-17 07:50:08 -05: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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user