summaryrefslogtreecommitdiffstats
path: root/fs/ncpfs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2017-09-21 01:54:36 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2017-12-03 02:37:54 +0100
commit872f8408a71b566c96645c9c2191ef3fe9fb891b (patch)
tree28834c0f33cfb73928e85c4dac6b96978f672e34 /fs/ncpfs
parentdlm: switch to sock_recvmsg() (diff)
downloadlinux-872f8408a71b566c96645c9c2191ef3fe9fb891b.tar.xz
linux-872f8408a71b566c96645c9c2191ef3fe9fb891b.zip
ncpfs: switch to sock_recvmsg()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ncpfs')
-rw-r--r--fs/ncpfs/sock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ncpfs/sock.c b/fs/ncpfs/sock.c
index efb176b1751a..4c13174d85b7 100644
--- a/fs/ncpfs/sock.c
+++ b/fs/ncpfs/sock.c
@@ -39,7 +39,8 @@ static int _recv(struct socket *sock, void *buf, int size, unsigned flags)
{
struct msghdr msg = {NULL, };
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)