diff options
Diffstat (limited to 'crypto/algif_skcipher.c')
-rw-r--r-- | crypto/algif_skcipher.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/algif_skcipher.c b/crypto/algif_skcipher.c index c3b482bee208..4f45dab24648 100644 --- a/crypto/algif_skcipher.c +++ b/crypto/algif_skcipher.c | |||
@@ -429,13 +429,13 @@ static int skcipher_recvmsg(struct kiocb *unused, struct socket *sock, | |||
429 | struct skcipher_sg_list *sgl; | 429 | struct skcipher_sg_list *sgl; |
430 | struct scatterlist *sg; | 430 | struct scatterlist *sg; |
431 | unsigned long iovlen; | 431 | unsigned long iovlen; |
432 | struct iovec *iov; | 432 | const struct iovec *iov; |
433 | int err = -EAGAIN; | 433 | int err = -EAGAIN; |
434 | int used; | 434 | int used; |
435 | long copied = 0; | 435 | long copied = 0; |
436 | 436 | ||
437 | lock_sock(sk); | 437 | lock_sock(sk); |
438 | for (iov = msg->msg_iov, iovlen = msg->msg_iovlen; iovlen > 0; | 438 | for (iov = msg->msg_iter.iov, iovlen = msg->msg_iter.nr_segs; iovlen > 0; |
439 | iovlen--, iov++) { | 439 | iovlen--, iov++) { |
440 | unsigned long seglen = iov->iov_len; | 440 | unsigned long seglen = iov->iov_len; |
441 | char __user *from = iov->iov_base; | 441 | char __user *from = iov->iov_base; |