diff options
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/scatterwalk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/scatterwalk.c b/crypto/scatterwalk.c index a66423121773..0f76175f623f 100644 --- a/crypto/scatterwalk.c +++ b/crypto/scatterwalk.c | |||
@@ -91,7 +91,7 @@ void scatterwalk_copychunks(void *buf, struct scatter_walk *walk, | |||
91 | memcpy_dir(buf, vaddr, len_this_page, out); | 91 | memcpy_dir(buf, vaddr, len_this_page, out); |
92 | scatterwalk_unmap(vaddr, out); | 92 | scatterwalk_unmap(vaddr, out); |
93 | 93 | ||
94 | scatterwalk_advance(walk, nbytes); | 94 | scatterwalk_advance(walk, len_this_page); |
95 | 95 | ||
96 | if (nbytes == len_this_page) | 96 | if (nbytes == len_this_page) |
97 | break; | 97 | break; |