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
515f4f3f
Commit
515f4f3f
authored
Jan 13, 2005
by
Olaf Kirch
Committed by
David S. Miller
Jan 13, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET]: Check for SOL_SOCKET in compat_sys_getsockopt
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
5a06887b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
net/compat.c
net/compat.c
+2
-1
No files found.
net/compat.c
View file @
515f4f3f
...
...
@@ -507,7 +507,8 @@ static int do_get_sock_timeout(int fd, int level, int optname,
asmlinkage
long
compat_sys_getsockopt
(
int
fd
,
int
level
,
int
optname
,
char
__user
*
optval
,
int
__user
*
optlen
)
{
if
(
optname
==
SO_RCVTIMEO
||
optname
==
SO_SNDTIMEO
)
if
(
level
==
SOL_SOCKET
&&
(
optname
==
SO_RCVTIMEO
||
optname
==
SO_SNDTIMEO
))
return
do_get_sock_timeout
(
fd
,
level
,
optname
,
optval
,
optlen
);
return
sys_getsockopt
(
fd
,
level
,
optname
,
optval
,
optlen
);
}
...
...
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