mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
crypto: replace scatterwalk_sg_chain with sg_chain
Signed-off-by: Dan Williams <[email protected]> [hch: split from a larger patch by Dan] Signed-off-by: Christoph Hellwig <[email protected]> Acked-by: Herbert Xu <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
02c4de53ad
commit
c56f6d1270
8 changed files with 12 additions and 21 deletions
|
|
@ -200,14 +200,14 @@ static void crypto_gcm_init_common(struct aead_request *req)
|
|||
sg_set_buf(pctx->src, pctx->auth_tag, sizeof(pctx->auth_tag));
|
||||
sg = scatterwalk_ffwd(pctx->src + 1, req->src, req->assoclen);
|
||||
if (sg != pctx->src + 1)
|
||||
scatterwalk_sg_chain(pctx->src, 2, sg);
|
||||
sg_chain(pctx->src, 2, sg);
|
||||
|
||||
if (req->src != req->dst) {
|
||||
sg_init_table(pctx->dst, 3);
|
||||
sg_set_buf(pctx->dst, pctx->auth_tag, sizeof(pctx->auth_tag));
|
||||
sg = scatterwalk_ffwd(pctx->dst + 1, req->dst, req->assoclen);
|
||||
if (sg != pctx->dst + 1)
|
||||
scatterwalk_sg_chain(pctx->dst, 2, sg);
|
||||
sg_chain(pctx->dst, 2, sg);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue