summaryrefslogtreecommitdiff
path: root/lib/test_printf.c
diff options
context:
space:
mode:
authorThara Gopinath <thara.gopinath@linaro.org>2021-05-20 22:20:23 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2021-05-28 15:11:45 +0800
commit1339a7c3ba05137a2d2fe75f602311bbfc6fab33 (patch)
treed4f32635cd154120c2dc5140ebef144cf546e2f1 /lib/test_printf.c
parent9b7b94683a9b9c42a743d591e48b9f51f505dd1f (diff)
crypto: qce: skcipher: Fix incorrect sg count for dma transfers
Use the sg count returned by dma_map_sg to call into dmaengine_prep_slave_sg rather than using the original sg count. dma_map_sg can merge consecutive sglist entries, thus making the original sg count wrong. This is a fix for memory coruption issues observed while testing encryption/decryption of large messages using libkcapi framework. Patch has been tested further by running full suite of tcrypt.ko tests including fuzz tests. Signed-off-by: Thara Gopinath <thara.gopinath@linaro.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'lib/test_printf.c')
0 files changed, 0 insertions, 0 deletions