aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2014-11-24 10:42:55 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2014-12-09 16:29:03 -0500
commitc0371da6047abd261bc483c744dbc7d81a116172 (patch)
tree73b4d685f311a83e04f3a684ce18225b409b3f5f /crypto
parentd838df2e5dcbb6ed4d82854869e9a30f9aeef6da (diff)
put iov_iter into msghdr
Note that the code _using_ ->msg_iter at that point will be very unhappy with anything other than unshifted iovec-backed iov_iter. We still need to convert users to proper primitives. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/algif_hash.c4
-rw-r--r--crypto/algif_skcipher.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/crypto/algif_hash.c b/crypto/algif_hash.c
index 35c93ff11f35..83cd2cc49c9f 100644
--- a/crypto/algif_hash.c
+++ b/crypto/algif_hash.c
@@ -42,7 +42,7 @@ static int hash_sendmsg(struct kiocb *unused, struct socket *sock,
42 struct alg_sock *ask = alg_sk(sk); 42 struct alg_sock *ask = alg_sk(sk);
43 struct hash_ctx *ctx = ask->private; 43 struct hash_ctx *ctx = ask->private;
44 unsigned long iovlen; 44 unsigned long iovlen;
45 struct iovec *iov; 45 const struct iovec *iov;
46 long copied = 0; 46 long copied = 0;
47 int err; 47 int err;
48 48
@@ -58,7 +58,7 @@ static int hash_sendmsg(struct kiocb *unused, struct socket *sock,
58 58
59 ctx->more = 0; 59 ctx->more = 0;
60 60
61 for (iov = msg->msg_iov, iovlen = msg->msg_iovlen; iovlen > 0; 61 for (iov = msg->msg_iter.iov, iovlen = msg->msg_iter.nr_segs; iovlen > 0;
62 iovlen--, iov++) { 62 iovlen--, iov++) {
63 unsigned long seglen = iov->iov_len; 63 unsigned long seglen = iov->iov_len;
64 char __user *from = iov->iov_base; 64 char __user *from = iov->iov_base;
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;