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)
commitbe3bb8236db2d0fcd705062ae2e2a9d75131222f
tree844ead97a7f2fcb4dfcb59e078f19c7a22544dcb
parentddb6ca75b5671b8fbf1909bc588c449ee74b34f9
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