projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce20269
)
[CRYPTO] api: Use the right value when advancing scatterwalk_copychunks
author
Herbert Xu
<herbert@gondor.apana.org.au>
Sat, 31 Mar 2007 02:16:20 +0000
(12:16 +1000)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Sat, 31 Mar 2007 02:16:20 +0000
(12:16 +1000)
In the scatterwalk_copychunks loop, We should be advancing by
len_this_page and not nbytes. The latter is the total length.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/scatterwalk.c
patch
|
blob
|
history
diff --git
a/crypto/scatterwalk.c
b/crypto/scatterwalk.c
index
a664231
..
0f76175
100644
(file)
--- a/
crypto/scatterwalk.c
+++ b/
crypto/scatterwalk.c
@@
-91,7
+91,7
@@
void scatterwalk_copychunks(void *buf, struct scatter_walk *walk,
memcpy_dir(buf, vaddr, len_this_page, out);
scatterwalk_unmap(vaddr, out);
- scatterwalk_advance(walk,
nbytes
);
+ scatterwalk_advance(walk,
len_this_page
);
if (nbytes == len_this_page)
break;