]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: control: Add sanity checks for user ctl id name string
authorTakashi Iwai <tiwai@suse.de>
Wed, 11 Mar 2015 17:12:49 +0000 (18:12 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 12 Mar 2015 06:36:38 +0000 (07:36 +0100)
commit663a55601f3802c0b25da7762692bd116eaef907
tree844ead97a7f2fcb4dfcb59e078f19c7a22544dcb
parente41f046902127530df95dc3b37640adae8f17840
ALSA: control: Add sanity checks for user ctl id name string

There was no check about the id string of user control elements, so we
accepted even a control element with an empty string, which is
obviously bogus.  This patch adds more sanity checks of id strings.

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