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
6eaf42d9
Commit
6eaf42d9
authored
Sep 13, 2004
by
Richard Henderson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ALPHA] Check set_fd_set return.
parent
5c422c68
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
arch/alpha/kernel/osf_sys.c
arch/alpha/kernel/osf_sys.c
+4
-3
No files found.
arch/alpha/kernel/osf_sys.c
View file @
6eaf42d9
...
...
@@ -1053,9 +1053,10 @@ osf_select(int n, fd_set __user *inp, fd_set __user *outp, fd_set __user *exp,
ret
=
0
;
}
set_fd_set
(
n
,
inp
->
fds_bits
,
fds
.
res_in
);
set_fd_set
(
n
,
outp
->
fds_bits
,
fds
.
res_out
);
set_fd_set
(
n
,
exp
->
fds_bits
,
fds
.
res_ex
);
if
(
set_fd_set
(
n
,
inp
->
fds_bits
,
fds
.
res_in
)
||
set_fd_set
(
n
,
outp
->
fds_bits
,
fds
.
res_out
)
||
set_fd_set
(
n
,
exp
->
fds_bits
,
fds
.
res_ex
))
ret
=
-
EFAULT
;
out:
kfree
(
bits
);
...
...
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