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
b616a085
Commit
b616a085
authored
Jul 11, 2003
by
Alan Cox
Committed by
Steve French
Jul 11, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] fix security leaks in cmpci
parent
3d4dcdfc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
sound/oss/cmpci.c
sound/oss/cmpci.c
+4
-4
No files found.
sound/oss/cmpci.c
View file @
b616a085
...
@@ -1272,8 +1272,8 @@ static int mixer_ioctl(struct cm_state *s, unsigned int cmd, unsigned long arg)
...
@@ -1272,8 +1272,8 @@ static int mixer_ioctl(struct cm_state *s, unsigned int cmd, unsigned long arg)
VALIDATE_STATE
(
s
);
VALIDATE_STATE
(
s
);
if
(
cmd
==
SOUND_MIXER_INFO
)
{
if
(
cmd
==
SOUND_MIXER_INFO
)
{
mixer_info
info
;
mixer_info
info
;
str
l
cpy
(
info
.
id
,
"cmpci"
,
sizeof
(
info
.
id
));
str
n
cpy
(
info
.
id
,
"cmpci"
,
sizeof
(
info
.
id
));
str
l
cpy
(
info
.
name
,
"C-Media PCI"
,
sizeof
(
info
.
name
));
str
n
cpy
(
info
.
name
,
"C-Media PCI"
,
sizeof
(
info
.
name
));
info
.
modify_counter
=
s
->
mix
.
modcnt
;
info
.
modify_counter
=
s
->
mix
.
modcnt
;
if
(
copy_to_user
((
void
*
)
arg
,
&
info
,
sizeof
(
info
)))
if
(
copy_to_user
((
void
*
)
arg
,
&
info
,
sizeof
(
info
)))
return
-
EFAULT
;
return
-
EFAULT
;
...
@@ -1281,8 +1281,8 @@ static int mixer_ioctl(struct cm_state *s, unsigned int cmd, unsigned long arg)
...
@@ -1281,8 +1281,8 @@ static int mixer_ioctl(struct cm_state *s, unsigned int cmd, unsigned long arg)
}
}
if
(
cmd
==
SOUND_OLD_MIXER_INFO
)
{
if
(
cmd
==
SOUND_OLD_MIXER_INFO
)
{
_old_mixer_info
info
;
_old_mixer_info
info
;
str
l
cpy
(
info
.
id
,
"cmpci"
,
sizeof
(
info
.
id
));
str
n
cpy
(
info
.
id
,
"cmpci"
,
sizeof
(
info
.
id
));
str
l
cpy
(
info
.
name
,
"C-Media cmpci"
,
sizeof
(
info
.
name
));
str
n
cpy
(
info
.
name
,
"C-Media cmpci"
,
sizeof
(
info
.
name
));
if
(
copy_to_user
((
void
*
)
arg
,
&
info
,
sizeof
(
info
)))
if
(
copy_to_user
((
void
*
)
arg
,
&
info
,
sizeof
(
info
)))
return
-
EFAULT
;
return
-
EFAULT
;
return
0
;
return
0
;
...
...
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