mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
ncpfs: switch to sock_recvmsg()
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
1 parent
c8c7840ea9
commit
872f8408a7
1 file changed
+2
-1
+2
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user