diff options
Diffstat (limited to 'kernel/sound/core/control.c')
-rw-r--r-- | kernel/sound/core/control.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/sound/core/control.c b/kernel/sound/core/control.c index 196a6fe10..a85d45595 100644 --- a/kernel/sound/core/control.c +++ b/kernel/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) { |