ALSA: sb: fix a missing check of snd_ctl_add
authorAditya Pakki <pakki001@umn.edu>
Sun, 6 Jan 2019 17:16:00 +0000 (11:16 -0600)
committerTakashi Iwai <tiwai@suse.de>
Mon, 7 Jan 2019 10:59:23 +0000 (11:59 +0100)
commitbeae77170c60aa786f3e4599c18ead2854d8694d
tree4e9fe5d0bc9d2a452ffff1850feed24ad4c87088
parent02cc53e223d498010de5f114d72c11a2d55118e8
ALSA: sb: fix a missing check of snd_ctl_add

snd_ctl_add() could fail, so let's check its return value and return its
error code upstream upon failure.

Signed-off-by: Aditya Pakki <pakki001@umn.edu>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/isa/sb/sb16_main.c