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)
committerDanny Wood <danwood76@gmail.com>
Tue, 29 Jan 2019 13:07:24 +0000 (13:07 +0000)
commitd5f3be42ccd0457320b56f6536bd8a1d4b10a4d4
treeb576755c906e58a169c9b285efea407a5bcf59dd
parent55f14d5a03562e4c6c87771dcc5080ca27d300d7
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/core/control.c