diff options
author | David S. Miller <davem@davemloft.net> | 2014-12-10 13:17:23 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-12-10 13:17:23 -0500 |
commit | 6e5f59aacbf9527dfe425541c78cb8c56623e7eb (patch) | |
tree | dc5614e1546dba2bd6896d4aa21410e1d3297a09 /net/ipv4/tcp.c | |
parent | 6c702fab626328c33b539b0c618a5511aed23bed (diff) | |
parent | 218321e7a0838c2be974539f0a5341b398d4432b (diff) |
Merge branch 'for-davem-2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
More iov_iter work for the networking from Al Viro.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp.c')
-rw-r--r-- | net/ipv4/tcp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index 427aee33ffc0..3075723c729b 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c | |||
@@ -1067,7 +1067,7 @@ static int tcp_sendmsg_fastopen(struct sock *sk, struct msghdr *msg, | |||
1067 | int tcp_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, | 1067 | int tcp_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, |
1068 | size_t size) | 1068 | size_t size) |
1069 | { | 1069 | { |
1070 | struct iovec *iov; | 1070 | const struct iovec *iov; |
1071 | struct tcp_sock *tp = tcp_sk(sk); | 1071 | struct tcp_sock *tp = tcp_sk(sk); |
1072 | struct sk_buff *skb; | 1072 | struct sk_buff *skb; |
1073 | int iovlen, flags, err, copied = 0; | 1073 | int iovlen, flags, err, copied = 0; |
@@ -1118,8 +1118,8 @@ int tcp_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, | |||
1118 | mss_now = tcp_send_mss(sk, &size_goal, flags); | 1118 | mss_now = tcp_send_mss(sk, &size_goal, flags); |
1119 | 1119 | ||
1120 | /* Ok commence sending. */ | 1120 | /* Ok commence sending. */ |
1121 | iovlen = msg->msg_iovlen; | 1121 | iovlen = msg->msg_iter.nr_segs; |
1122 | iov = msg->msg_iov; | 1122 | iov = msg->msg_iter.iov; |
1123 | copied = 0; | 1123 | copied = 0; |
1124 | 1124 | ||
1125 | err = -EPIPE; | 1125 | err = -EPIPE; |
@@ -1711,7 +1711,7 @@ int tcp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, | |||
1711 | if (!user_recv && !(flags & (MSG_TRUNC | MSG_PEEK))) { | 1711 | if (!user_recv && !(flags & (MSG_TRUNC | MSG_PEEK))) { |
1712 | user_recv = current; | 1712 | user_recv = current; |
1713 | tp->ucopy.task = user_recv; | 1713 | tp->ucopy.task = user_recv; |
1714 | tp->ucopy.iov = msg->msg_iov; | 1714 | tp->ucopy.msg = msg; |
1715 | } | 1715 | } |
1716 | 1716 | ||
1717 | tp->ucopy.len = len; | 1717 | tp->ucopy.len = len; |