Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1472585 > unrolled thread

[PATCH 1/4] crypto: qce: Remove unneeded length check for scatterlist

Started byIaroslav Gridin <voker57@gmail.com>
First post2016-08-30 18:00 +0200
Last post2016-08-30 18:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 1/4] crypto: qce: Remove unneeded length check for scatterlist Iaroslav Gridin <voker57@gmail.com> - 2016-08-30 18:00 +0200

#1472585 — [PATCH 1/4] crypto: qce: Remove unneeded length check for scatterlist

FromIaroslav Gridin <voker57@gmail.com>
Date2016-08-30 18:00 +0200
Subject[PATCH 1/4] crypto: qce: Remove unneeded length check for scatterlist
Message-ID<sbTC9-6Nf-7@gated-at.bofh.it>
From: Voker57 <voker57@gmail.com>

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@gmail.com>
---
 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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web