ALSA: sonicvibes: add error handling for snd_ctl_add
authorZhouyang Jia <jiazhouyang09@gmail.com>
Thu, 14 Jun 2018 11:41:37 +0000 (19:41 +0800)
committerTakashi Iwai <tiwai@suse.de>
Thu, 14 Jun 2018 16:00:30 +0000 (18:00 +0200)
commit41538f2db1eaa8613ffb3cd0c92a57ace6c0a5f2
tree2ae7d6252142022fbf12324d69849a1400df4a11
parentd9d5ed1ad5d8a256c8c3f6b7736d9dad10232637
ALSA: sonicvibes: add error handling for snd_ctl_add

When snd_ctl_add fails, the lack of error-handling code may
cause unexpected results.

This patch adds error-handling code after calling snd_ctl_add.

Signed-off-by: Zhouyang Jia <jiazhouyang09@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/sonicvibes.c