projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1186ed8
)
[ALSA] Fix errors with user TLV_WRITE
author
Takashi Iwai
<tiwai@suse.de>
Thu, 24 Aug 2006 10:36:36 +0000
(12:36 +0200)
committer
Jaroslav Kysela
<perex@suse.cz>
Sat, 23 Sep 2006 08:44:17 +0000
(10:44 +0200)
Fixed the errors at checking info.access field during user TLV_WRITE
call. It should have been zero-initialized.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
sound/core/control.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/core/control.c
b/sound/core/control.c
index ac1442682eace2e8bb77f9389fc023511d8ec46f..3030aaa6d2c5cd14d9be4113e7098755c6da4d06 100644
(file)
--- a/
sound/core/control.c
+++ b/
sound/core/control.c
@@
-1048,6
+1048,7
@@
static int snd_ctl_elem_add(struct snd_ctl_file *file,
if (ue == NULL)
return -ENOMEM;
ue->info = *info;
+ ue->info.access = 0;
ue->elem_data = (char *)ue + sizeof(*ue);
ue->elem_data_size = private_size;
kctl.private_free = snd_ctl_elem_user_free;