summaryrefslogtreecommitdiffstats
path: root/crypto/gcm.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2015-08-07 12:15:13 -0400
committerJens Axboe <axboe@fb.com>2015-08-17 10:12:54 -0400
commitc56f6d1270b9fc31144b59106bc8590c2acf4a8e (patch)
treeaed4bd399c4b10300da7283e935688d7374e1c3d /crypto/gcm.c
parent02c4de53add1b799f5663d5e9c8e9a5d9366a507 (diff)
crypto: replace scatterwalk_sg_chain with sg_chain
Signed-off-by: Dan Williams <dan.j.williams@intel.com> [hch: split from a larger patch by Dan] Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'crypto/gcm.c')
-rw-r--r--crypto/gcm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/gcm.c b/crypto/gcm.c
index 7d32d4720564..ab0b2f9e8fad 100644
--- a/crypto/gcm.c
+++ b/crypto/gcm.c
@@ -200,14 +200,14 @@ static void crypto_gcm_init_common(struct aead_request *req)
200 sg_set_buf(pctx->src, pctx->auth_tag, sizeof(pctx->auth_tag)); 200 sg_set_buf(pctx->src, pctx->auth_tag, sizeof(pctx->auth_tag));
201 sg = scatterwalk_ffwd(pctx->src + 1, req->src, req->assoclen); 201 sg = scatterwalk_ffwd(pctx->src + 1, req->src, req->assoclen);
202 if (sg != pctx->src + 1) 202 if (sg != pctx->src + 1)
203 scatterwalk_sg_chain(pctx->src, 2, sg); 203 sg_chain(pctx->src, 2, sg);
204 204
205 if (req->src != req->dst) { 205 if (req->src != req->dst) {
206 sg_init_table(pctx->dst, 3); 206 sg_init_table(pctx->dst, 3);
207 sg_set_buf(pctx->dst, pctx->auth_tag, sizeof(pctx->auth_tag)); 207 sg_set_buf(pctx->dst, pctx->auth_tag, sizeof(pctx->auth_tag));
208 sg = scatterwalk_ffwd(pctx->dst + 1, req->dst, req->assoclen); 208 sg = scatterwalk_ffwd(pctx->dst + 1, req->dst, req->assoclen);
209 if (sg != pctx->dst + 1) 209 if (sg != pctx->dst + 1)
210 scatterwalk_sg_chain(pctx->dst, 2, sg); 210 sg_chain(pctx->dst, 2, sg);
211 } 211 }
212} 212}
213 213