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
13d4109d
Commit
13d4109d
authored
Jun 23, 2004
by
Alexander Viro
Committed by
Linus Torvalds
Jun 23, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] sparse: i2o fixed
Fixes for direct dereferencing of userland pointers in i2o_config.c
parent
bec737de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
drivers/message/i2o/i2o_config.c
drivers/message/i2o/i2o_config.c
+6
-2
No files found.
drivers/message/i2o/i2o_config.c
View file @
13d4109d
...
@@ -857,9 +857,13 @@ static int ioctl_passthru(unsigned long arg)
...
@@ -857,9 +857,13 @@ static int ioctl_passthru(unsigned long arg)
int
sg_index
=
0
;
int
sg_index
=
0
;
u32
i
=
0
;
u32
i
=
0
;
ulong
p
=
0
;
ulong
p
=
0
;
unsigned
int
iop
;
c
=
i2o_find_controller
(
cmd
->
iop
);
if
(
get_user
(
iop
,
&
cmd
->
iop
)
||
get_user
(
user_msg
,
&
cmd
->
msg
))
if
(
!
c
)
return
-
EFAULT
;
c
=
i2o_find_controller
(
iop
);
if
(
!
c
)
return
-
ENXIO
;
return
-
ENXIO
;
memset
(
&
msg
,
0
,
MSG_FRAME_SIZE
*
4
);
memset
(
&
msg
,
0
,
MSG_FRAME_SIZE
*
4
);
...
...
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