Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: mxs-dcp - Fix scatterlist processing

This patch fixes a bug in scatterlist processing that may cause incorrect AES block encryption/decryption.

Fixes: 2e6d793e1bf0 ("crypto: mxs-dcp - Use sg_mapping_iter to copy data")
Signed-off-by: Tomas Paukrt <tomaspaukrt@email.cz>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Tomas Paukrt and committed by
Herbert Xu
28e9b6d8 05b3bade

+1 -1
+1 -1
drivers/crypto/mxs-dcp.c
··· 331 331 memset(key + AES_KEYSIZE_128, 0, AES_KEYSIZE_128); 332 332 } 333 333 334 - for_each_sg(req->src, src, sg_nents(src), i) { 334 + for_each_sg(req->src, src, sg_nents(req->src), i) { 335 335 src_buf = sg_virt(src); 336 336 len = sg_dma_len(src); 337 337 tlen += len;