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
Kirill Smelkov
linux
Commits
dacfa425
Commit
dacfa425
authored
Nov 19, 2004
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://kernel.bkbits.net/davem/net-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux
parents
bc6e5443
6e14891f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
net/unix/af_unix.c
net/unix/af_unix.c
+7
-2
No files found.
net/unix/af_unix.c
View file @
dacfa425
...
@@ -1513,13 +1513,18 @@ static int unix_stream_sendmsg(struct kiocb *kiocb, struct socket *sock,
...
@@ -1513,13 +1513,18 @@ static int unix_stream_sendmsg(struct kiocb *kiocb, struct socket *sock,
static
int
unix_seqpacket_sendmsg
(
struct
kiocb
*
kiocb
,
struct
socket
*
sock
,
static
int
unix_seqpacket_sendmsg
(
struct
kiocb
*
kiocb
,
struct
socket
*
sock
,
struct
msghdr
*
msg
,
size_t
len
)
struct
msghdr
*
msg
,
size_t
len
)
{
{
int
err
;
struct
sock
*
sk
=
sock
->
sk
;
struct
sock
*
sk
=
sock
->
sk
;
err
=
sock_error
(
sk
);
if
(
err
)
return
err
;
if
(
sk
->
sk_state
!=
TCP_ESTABLISHED
)
if
(
sk
->
sk_state
!=
TCP_ESTABLISHED
)
return
-
ENOTCONN
;
return
-
ENOTCONN
;
if
(
msg
->
msg_name
||
msg
->
msg_name
len
)
if
(
msg
->
msg_namelen
)
return
-
EINVAL
;
msg
->
msg_namelen
=
0
;
return
unix_dgram_sendmsg
(
kiocb
,
sock
,
msg
,
len
);
return
unix_dgram_sendmsg
(
kiocb
,
sock
,
msg
,
len
);
}
}
...
...
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