]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 26 May 2016 22:43:16 +0000 (15:43 -0700)
commita22c6e31f962ec0fe6d2189560ffd0d84b914c0a
treec6603e42652242905fbe9c1733bd82d495609861
parent29e893dc4f46b31146dbef017c178a3b8b984546
ALSA: control: Avoid kernel warnings from tlv ioctl with numid 0

Orabug: 23330534

commit c0bcdbdff3ff73a54161fca3cb8b6cdbd0bb8762 upstream.

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>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit efcf073d7fa1aa1fb2a8d3f3db373e1a5ecbc60a)

Signed-off-by: Dan Duval <dan.duval@oracle.com>
sound/core/control.c