Commit 872f8408 authored by Al Viro's avatar Al Viro

ncpfs: switch to sock_recvmsg()

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent c8c7840e
...@@ -39,7 +39,8 @@ static int _recv(struct socket *sock, void *buf, int size, unsigned flags) ...@@ -39,7 +39,8 @@ static int _recv(struct socket *sock, void *buf, int size, unsigned flags)
{ {
struct msghdr msg = {NULL, }; struct msghdr msg = {NULL, };
struct kvec iov = {buf, size}; struct kvec iov = {buf, size};
return kernel_recvmsg(sock, &msg, &iov, 1, size, flags); iov_iter_kvec(&msg.msg_iter, READ | ITER_KVEC, &iov, 1, size);
return sock_recvmsg(sock, &msg, flags);
} }
static int _send(struct socket *sock, const void *buff, int len) static int _send(struct socket *sock, const void *buff, int len)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment