Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1472585
| From | Iaroslav Gridin <voker57@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 1/4] crypto: qce: Remove unneeded length check for scatterlist |
| Date | 2016-08-30 18:00 +0200 |
| Message-ID | <sbTC9-6Nf-7@gated-at.bofh.it> (permalink) |
| References | <sbTC9-6Nf-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH 1/4] crypto: qce: Remove unneeded length check for scatterlist Iaroslav Gridin <voker57@gmail.com> - 2016-08-30 18:00 +0200
csiph-web