Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
bc480273
Commit
bc480273
authored
Sep 20, 2017
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tipc: switch to sock_recvmsg()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
d63d271c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
net/tipc/server.c
net/tipc/server.c
+2
-2
No files found.
net/tipc/server.c
View file @
bc480273
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment