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)
committerTakashi Iwai <tiwai@suse.de>
Mon, 4 Dec 2017 08:15:55 +0000 (09:15 +0100)
commit89b89d121ffcf8d9546633b98ded9d18b8f75891
treed1e027d564b848364fc4238249995fe9c8d0ed22
parent251552a2b0d454badc8f486e6d79100970c744b0
ALSA: usb-audio: Add check return value for usb_string()

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>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer.c