X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=crypto%2Fablkcipher.c;h=e5b5721809e21d5d379e6e711e23ef709252e0ed;hb=4eab21e6bfb95170da69def04e7369701c301096;hp=b4ffc5be1a93c1ff0bceb6b9a5cc3dc1b5101d97;hpb=d441fe25e7de576e36a3cd96f22b737d2f15372a;p=firefly-linux-kernel-4.4.55.git diff --git a/crypto/ablkcipher.c b/crypto/ablkcipher.c index b4ffc5be1a93..e5b5721809e2 100644 --- a/crypto/ablkcipher.c +++ b/crypto/ablkcipher.c @@ -277,12 +277,12 @@ static int ablkcipher_walk_first(struct ablkcipher_request *req, if (WARN_ON_ONCE(in_irq())) return -EDEADLK; + walk->iv = req->info; walk->nbytes = walk->total; if (unlikely(!walk->total)) return 0; walk->iv_buffer = NULL; - walk->iv = req->info; if (unlikely(((unsigned long)walk->iv & alignmask))) { int err = ablkcipher_copy_iv(walk, tfm, alignmask);