Skip to content

Commit 886a27c

Browse files
chleroyherbertx
authored andcommitted
crypto: talitos - fix hashing
md5sum on some files gives wrong result Exemple: With the md5sum from libkcapi: c15115c05bad51113f81bdaee735dd09 test With the original md5sum: bbdf41d80ba7e8b2b7be3a0772be76cb test This patch fixes this issue Cc: <stable@vger.kernel.org> Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent afd62fa commit 886a27c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/crypto/talitos.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1769,7 +1769,7 @@ static int common_nonsnoop_hash(struct talitos_edesc *edesc,
17691769

17701770
sg_count = edesc->src_nents ?: 1;
17711771
if (is_sec1 && sg_count > 1)
1772-
sg_copy_to_buffer(areq->src, sg_count, edesc->buf, length);
1772+
sg_copy_to_buffer(req_ctx->psrc, sg_count, edesc->buf, length);
17731773
else
17741774
sg_count = dma_map_sg(dev, req_ctx->psrc, sg_count,
17751775
DMA_TO_DEVICE);

0 commit comments

Comments
 (0)