diff options
-rw-r--r-- | crypto/scatterwalk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/scatterwalk.c b/crypto/scatterwalk.c index 35172d3f043b..a66423121773 100644 --- a/crypto/scatterwalk.c +++ b/crypto/scatterwalk.c | |||
@@ -91,6 +91,8 @@ 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); | ||
95 | |||
94 | if (nbytes == len_this_page) | 96 | if (nbytes == len_this_page) |
95 | break; | 97 | break; |
96 | 98 | ||
@@ -99,7 +101,5 @@ void scatterwalk_copychunks(void *buf, struct scatter_walk *walk, | |||
99 | 101 | ||
100 | scatterwalk_pagedone(walk, out, 1); | 102 | scatterwalk_pagedone(walk, out, 1); |
101 | } | 103 | } |
102 | |||
103 | scatterwalk_advance(walk, nbytes); | ||
104 | } | 104 | } |
105 | EXPORT_SYMBOL_GPL(scatterwalk_copychunks); | 105 | EXPORT_SYMBOL_GPL(scatterwalk_copychunks); |