aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/skcipher.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/skcipher.c')
-rw-r--r--crypto/skcipher.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/skcipher.c b/crypto/skcipher.c
index aca07c643d41..0e1e6c35188e 100644
--- a/crypto/skcipher.c
+++ b/crypto/skcipher.c
@@ -226,7 +226,9 @@ static int skcipher_next_slow(struct skcipher_walk *walk, unsigned int bsize)
226 void *v; 226 void *v;
227 227
228 if (!phys) { 228 if (!phys) {
229 buffer = walk->buffer ?: walk->page; 229 if (!walk->buffer)
230 walk->buffer = walk->page;
231 buffer = walk->buffer;
230 if (buffer) 232 if (buffer)
231 goto ok; 233 goto ok;
232 } 234 }