On Sat, Apr 01, 2017 at 10:52:30PM +0200, Stephan Müller wrote: > > lock_sock(sk); > - while (msg_data_left(msg)) { > - if (!ctx->used) { > - err = skcipher_wait_for_data(sk, flags); > - if (err) > - goto unlock; > + while (iov_iter_count(&msg->msg_iter)) { Please keep it as msg_data_left. Thanks, -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt