]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerJiri Slaby <jslaby@suse.cz>
Thu, 9 Apr 2015 11:14:08 +0000 (13:14 +0200)
commitf6b485a40d29c6800e7d3d720acac5201a4a9bc5
tree0ffaad9b0081eb2d3d65ec4f51f2c751d14f2b7c
parent562960330f8e7dc5ab64ab7d38270ae2c34a067a
ALSA: control: Add sanity checks for user ctl id name string

commit be3bb8236db2d0fcd705062ae2e2a9d75131222f upstream.

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.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
sound/core/control.c