diff options
-rw-r--r-- | sound/core/control.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/core/control.c b/sound/core/control.c index 196a6fe100ca..a85d45595d02 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, | |||
1405 | return -EFAULT; | 1405 | return -EFAULT; |
1406 | if (tlv.length < sizeof(unsigned int) * 2) | 1406 | if (tlv.length < sizeof(unsigned int) * 2) |
1407 | return -EINVAL; | 1407 | return -EINVAL; |
1408 | if (!tlv.numid) | ||
1409 | return -EINVAL; | ||
1408 | down_read(&card->controls_rwsem); | 1410 | down_read(&card->controls_rwsem); |
1409 | kctl = snd_ctl_find_numid(card, tlv.numid); | 1411 | kctl = snd_ctl_find_numid(card, tlv.numid); |
1410 | if (kctl == NULL) { | 1412 | if (kctl == NULL) { |