aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2017-09-20 22:08:04 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2017-12-02 20:38:10 -0500
commitbc4802736d8b17eddde52e00838c348770f67c19 (patch)
tree5a455ea6750cc24d552efb10f06268c4f7272839 /net/tipc
parentd63d271ce2b5ce6b4efeefd817b60e6a758083a5 (diff)
tipc: switch to sock_recvmsg()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'net/tipc')
-rw-r--r--net/tipc/server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/tipc/server.c b/net/tipc/server.c
index acaef80fb88c..0c3b74d1e722 100644
--- a/net/tipc/server.c
+++ b/net/tipc/server.c
@@ -264,8 +264,8 @@ static int tipc_receive_from_sock(struct tipc_conn *con)
264 iov.iov_base = buf; 264 iov.iov_base = buf;
265 iov.iov_len = s->max_rcvbuf_size; 265 iov.iov_len = s->max_rcvbuf_size;
266 msg.msg_name = &addr; 266 msg.msg_name = &addr;
267 ret = kernel_recvmsg(con->sock, &msg, &iov, 1, iov.iov_len, 267 iov_iter_kvec(&msg.msg_iter, READ | ITER_KVEC, &iov, 1, iov.iov_len);
268 MSG_DONTWAIT); 268 ret = sock_recvmsg(con->sock, &msg, MSG_DONTWAIT);
269 if (ret <= 0) { 269 if (ret <= 0) {
270 kmem_cache_free(s->rcvbuf_cache, buf); 270 kmem_cache_free(s->rcvbuf_cache, buf);
271 goto out_close; 271 goto out_close;