|
@@ -951,7 +951,7 @@ static int snd_ctl_elem_add(struct snd_ctl_file *file,
|
|
|
|
|
|
if (card->user_ctl_count >= MAX_USER_CONTROLS)
|
|
if (card->user_ctl_count >= MAX_USER_CONTROLS)
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
- if (info->count > 1024)
|
|
|
|
|
|
+ if (info->count < 1)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
access = info->access == 0 ? SNDRV_CTL_ELEM_ACCESS_READWRITE :
|
|
access = info->access == 0 ? SNDRV_CTL_ELEM_ACCESS_READWRITE :
|
|
(info->access & (SNDRV_CTL_ELEM_ACCESS_READWRITE|
|
|
(info->access & (SNDRV_CTL_ELEM_ACCESS_READWRITE|
|