projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ALSA: opl3: fix infoleak in opl3
[linux-2.6-microblaze.git]
/
sound
/
drivers
/
opl3
/
opl3_synth.c
diff --git
a/sound/drivers/opl3/opl3_synth.c
b/sound/drivers/opl3/opl3_synth.c
index
e69a4ef
..
08c10ac
100644
(file)
--- a/
sound/drivers/opl3/opl3_synth.c
+++ b/
sound/drivers/opl3/opl3_synth.c
@@
-91,6
+91,8
@@
int snd_opl3_ioctl(struct snd_hwdep * hw, struct file *file,
{
struct snd_dm_fm_info info;
+ memset(&info, 0, sizeof(info));
+
info.fm_mode = opl3->fm_mode;
info.rhythm = opl3->rhythm;
if (copy_to_user(argp, &info, sizeof(struct snd_dm_fm_info)))