From: Voker57 <voker57@xxxxxxxxx> Current code avoids supplying scatterlist containing more data than used to DMA. This leads to dropping data from scatterlists which would leave some for next run. Signed-off-by: Iaroslav Gridin <voker57@xxxxxxxxx> --- drivers/crypto/qce/sha.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/crypto/qce/sha.c b/drivers/crypto/qce/sha.c index 47e114a..a124bb9 100644 --- a/drivers/crypto/qce/sha.c +++ b/drivers/crypto/qce/sha.c @@ -282,8 +282,6 @@ static int qce_ahash_update(struct ahash_request *req) sg = sg_last = req->src; while (len < nbytes && sg) { - if (len + sg_dma_len(sg) > nbytes) - break; len += sg_dma_len(sg); sg_last = sg; sg = sg_next(sg); -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html