Message ID | 1453853571-20927-1-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/sound/core/control.c b/sound/core/control.c index 196a6fe..a85d455 100644 --- a/sound/core/control.c +++ b/sound/core/control.c @@ -1405,6 +1405,8 @@ static int snd_ctl_tlv_ioctl(struct snd_ctl_file *file, return -EFAULT; if (tlv.length < sizeof(unsigned int) * 2) return -EINVAL; + if (!tlv.numid) + return -EINVAL; down_read(&card->controls_rwsem); kctl = snd_ctl_find_numid(card, tlv.numid); if (kctl == NULL) {