ALSA: usb-audio: Add check return value for usb_string()
authorJaejoong Kim <climbbb.kim@gmail.com>
Mon, 4 Dec 2017 06:31:49 +0000 (15:31 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Dec 2017 08:52:55 +0000 (09:52 +0100)
commit3884d12e17ab770aa0f5d4bc65bfbfd006f417fa
treea6a450bcba263456fd4905a8094593358b4e2aa6
parent3936d752df21f3f83155df3a19ec3617c18741be
ALSA: usb-audio: Add check return value for usb_string()

commit 89b89d121ffcf8d9546633b98ded9d18b8f75891 upstream.

snd_usb_copy_string_desc() returns zero if usb_string() fails.
In case of failure, we need to check the snd_usb_copy_string_desc()'s
return value and add an exception case

Signed-off-by: Jaejoong Kim <climbbb.kim@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/usb/mixer.c