summaryrefslogtreecommitdiff
path: root/include/crypto/ctr.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/crypto/ctr.h')
-rw-r--r--include/crypto/ctr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/crypto/ctr.h b/include/crypto/ctr.h
index a1c66d1001af..da1ee73e9ce9 100644
--- a/include/crypto/ctr.h
+++ b/include/crypto/ctr.h
@@ -34,8 +34,8 @@ static inline int crypto_ctr_encrypt_walk(struct skcipher_request *req,
err = skcipher_walk_virt(&walk, req, false);
while (walk.nbytes > 0) {
+ const u8 *src = walk.src.virt.addr;
u8 *dst = walk.dst.virt.addr;
- u8 *src = walk.src.virt.addr;
int nbytes = walk.nbytes;
int tail = 0;