VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   55 Tags
author: Ard Biesheuvel <ardb@kernel.org> 2020-07-21 09:05:54 +0300 committer: Herbert Xu <herbert@gondor.apana.org.au> 2020-07-31 18:09:00 +1000 commit: 958ea4e0d64e39d039245e6450f625108833e522 parent: 28ee8b0912ca2ff68c2c03ff97bf1c22634c7942
Commit Summary:
crypto: xts - Replace memcpy() invocation with simple assignment
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/crypto/xts.c b/crypto/xts.c
index 3c3ed02c7663..ad45b009774b 100644
--- a/crypto/xts.c
+++ b/crypto/xts.c
@@ -171,7 +171,7 @@ static int xts_cts_final(struct skcipher_request *req,
 				      offset - XTS_BLOCK_SIZE);
 
 	scatterwalk_map_and_copy(b, rctx->tail, 0, XTS_BLOCK_SIZE, 0);
-	memcpy(b + 1, b, tail);
+	b[1] = b[0];
 	scatterwalk_map_and_copy(b, req->src, offset, tail, 0);
 
 	le128_xor(b, &rctx->t, b);