]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: control: Avoid kernel warnings from tlv ioctl with numid 0
authorTakashi Iwai <tiwai@suse.de>
Mon, 18 Jan 2016 13:12:40 +0000 (14:12 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 18 Jan 2016 13:40:07 +0000 (14:40 +0100)
commit03119344b91fb853a5f85dad5a5f33c58c6d8270
treed8429b3e98516f34c872fc91e2537d2013305e9a
parent2f0e599ef9fa3c1af3b4a1945e16012f5d3bd94a
ALSA: control: Avoid kernel warnings from tlv ioctl with numid 0

When a TLV ioctl with numid zero is handled, the driver may spew a
kernel warning with a stack trace at each call.  The check was
intended obviously only for a kernel driver, but not for a user
interaction.  Let's fix it.

This was spotted by syzkaller fuzzer.

Reported-by: Dmitry Vyukov <dvyukov@google.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/control.c