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)
committerWilly Tarreau <w@1wt.eu>
Sat, 12 Mar 2016 13:25:45 +0000 (14:25 +0100)
commitbc0f29c3fc3c52b64fff5f64d56f20e8deeabbd5
tree9bb13c4883dc49733a4bae5db7e3223b8fbef58c
parent99e79f2963d556abc263f2b88adfa41d3022c78a
ALSA: control: Avoid kernel warnings from tlv ioctl with numid 0

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: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Willy Tarreau <w@1wt.eu>
sound/core/control.c