diff options
Diffstat (limited to 'sound/core/control.c')
-rw-r--r-- | sound/core/control.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/core/control.c b/sound/core/control.c index 5d98194bcad5..f8c5be464510 100644 --- a/sound/core/control.c +++ b/sound/core/control.c | |||
@@ -704,13 +704,12 @@ static int snd_ctl_elem_list(struct snd_card *card, | |||
704 | struct snd_ctl_elem_list list; | 704 | struct snd_ctl_elem_list list; |
705 | struct snd_kcontrol *kctl; | 705 | struct snd_kcontrol *kctl; |
706 | struct snd_ctl_elem_id *dst, *id; | 706 | struct snd_ctl_elem_id *dst, *id; |
707 | unsigned int offset, space, first, jidx; | 707 | unsigned int offset, space, jidx; |
708 | 708 | ||
709 | if (copy_from_user(&list, _list, sizeof(list))) | 709 | if (copy_from_user(&list, _list, sizeof(list))) |
710 | return -EFAULT; | 710 | return -EFAULT; |
711 | offset = list.offset; | 711 | offset = list.offset; |
712 | space = list.space; | 712 | space = list.space; |
713 | first = 0; | ||
714 | /* try limit maximum space */ | 713 | /* try limit maximum space */ |
715 | if (space > 16384) | 714 | if (space > 16384) |
716 | return -ENOMEM; | 715 | return -ENOMEM; |