FAILED: patch "[PATCH] crypto: talitos - fix hashing" failed to apply to 4.4-stable tree
Subsystems (2)
[email protected]
maintainerThe patch below does not apply to the 4.4-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
Quoted 1 line
From
886a27c0fc8a34633aadb0986dba11d8c150ae2eMon Sep 17 00:00:00 2001
From: LEROY Christophe <[email protected]>
Date: Wed, 13 Sep 2017 12:44:57 +0200
Subject: [PATCH] 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 <[email protected]>
Signed-off-by Christophe Leroy <[email protected]>
Signed-off-by Herbert Xu <[email protected]>
drivers/crypto/talitos.c +1 -1
@@ -1769,7 +1769,7 @@ static int common_nonsnoop_hash(struct talitos_edesc *edesc, sg_count = edesc->src_nents ?:1 ;if (is_sec1 && sg_count >1 ) -sg_copy_to_buffer (areq->src, sg_count, edesc->buf, length); +sg_copy_to_buffer (req_ctx->psrc, sg_count, edesc->buf, length);else sg_count =dma_map_sg (dev, req_ctx->psrc, sg_count,DMA_TO_DEVICE );