diff options
author | Takashi Iwai <tiwai@suse.de> | 2006-08-24 14:36:36 +0400 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-09-23 12:44:17 +0400 |
commit | 86148e84c218e49b54521e8dae7bb78eb66c4281 (patch) | |
tree | f05752428c2fe498f6375a22b0d7cb70b1a49949 /sound/core | |
parent | 1186ed8c7dc9c0185e783beddf241509cc224f1a (diff) | |
download | linux-86148e84c218e49b54521e8dae7bb78eb66c4281.tar.xz |
[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/core')
-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, 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; |