diff options
author | Takashi Iwai <tiwai@suse.de> | 2006-08-24 06:36:36 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-09-23 04:44:17 -0400 |
commit | 86148e84c218e49b54521e8dae7bb78eb66c4281 (patch) | |
tree | f05752428c2fe498f6375a22b0d7cb70b1a49949 /sound | |
parent | 1186ed8c7dc9c0185e783beddf241509cc224f1a (diff) |
[ALSA] Fix errors with user TLV_WRITE
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>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/core/control.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/core/control.c b/sound/core/control.c index ac1442682eac..3030aaa6d2c5 100644 --- 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, | |||
1048 | if (ue == NULL) | 1048 | if (ue == NULL) |
1049 | return -ENOMEM; | 1049 | return -ENOMEM; |
1050 | ue->info = *info; | 1050 | ue->info = *info; |
1051 | ue->info.access = 0; | ||
1051 | ue->elem_data = (char *)ue + sizeof(*ue); | 1052 | ue->elem_data = (char *)ue + sizeof(*ue); |
1052 | ue->elem_data_size = private_size; | 1053 | ue->elem_data_size = private_size; |
1053 | kctl.private_free = snd_ctl_elem_user_free; | 1054 | kctl.private_free = snd_ctl_elem_user_free; |