projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8c7840
)
ncpfs: switch to sock_recvmsg()
author
Al Viro
<viro@zeniv.linux.org.uk>
Wed, 20 Sep 2017 23:54:36 +0000
(19:54 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Sun, 3 Dec 2017 01:37:54 +0000
(20:37 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ncpfs/sock.c
patch
|
blob
|
history
diff --git
a/fs/ncpfs/sock.c
b/fs/ncpfs/sock.c
index
efb176b
..
4c13174
100644
(file)
--- 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)