ALSA: emu10k1: add error handling for snd_ctl_add
authorZhouyang Jia <jiazhouyang09@gmail.com>
Mon, 11 Jun 2018 08:18:40 +0000 (16:18 +0800)
committerTakashi Iwai <tiwai@suse.de>
Mon, 11 Jun 2018 13:23:00 +0000 (15:23 +0200)
commit6d531e7b972cb62ded011c2dfcc2d9f72ea6c421
treeb0c133c6a2eb2e9255970978a37e9f31dd493472
parentef1ffbe7889e99f5b5cccb41c89e5c94f50f3218
ALSA: emu10k1: 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/emu10k1/emupcm.c