Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
xenomai
xenomai
Commits
01559b14
Commit
01559b14
authored
Dec 04, 2017
by
Philippe Gerum
Browse files
net/tcp: fix invalid reference in getsockopt()
parent
e493c668
Changes
1
Hide whitespace changes
Inline
Side-by-side
kernel/drivers/net/stack/ipv4/tcp/tcp.c
View file @
01559b14
...
...
@@ -1822,7 +1822,7 @@ static int rt_tcp_ioctl(struct rtdm_fd *fd,
setopt
->
optlen
);
case
_RTIOC_GETSOCKOPT
:
if
(
s
etopt
->
level
!=
SOL_SOCKET
)
if
(
g
etopt
->
level
!=
SOL_SOCKET
)
break
;
return
rt_tcp_getsockopt
(
fd
,
ts
,
getopt
->
level
,
getopt
->
optname
,
getopt
->
optval
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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