diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2017-09-21 04:08:04 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-12-03 02:38:10 +0100 |
commit | bc4802736d8b17eddde52e00838c348770f67c19 (patch) | |
tree | 5a455ea6750cc24d552efb10f06268c4f7272839 /net/tipc/server.c | |
parent | smc: switch to sock_recvmsg() (diff) | |
download | linux-bc4802736d8b17eddde52e00838c348770f67c19.tar.xz linux-bc4802736d8b17eddde52e00838c348770f67c19.zip |
tipc: switch to sock_recvmsg()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'net/tipc/server.c')
-rw-r--r-- | net/tipc/server.c | 4 |
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) iov.iov_base = buf; iov.iov_len = s->max_rcvbuf_size; msg.msg_name = &addr; - ret = kernel_recvmsg(con->sock, &msg, &iov, 1, iov.iov_len, - MSG_DONTWAIT); + iov_iter_kvec(&msg.msg_iter, READ | ITER_KVEC, &iov, 1, iov.iov_len); + ret = sock_recvmsg(con->sock, &msg, MSG_DONTWAIT); if (ret <= 0) { kmem_cache_free(s->rcvbuf_cache, buf); goto out_close; |