summaryrefslogtreecommitdiffstats
path: root/sound/usb
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2020-01-15 20:46:04 +0300
committerTakashi Iwai <tiwai@suse.de>2020-01-15 20:26:09 +0100
commita3afa29942b84b4e2548beacccc3a68b8d77e3dc (patch)
tree2ff1cca8b92619d2bbac777bfbf11adc9e7fa33c /sound/usb
parent75663c093d0bbbf51e3a3149f91f3148a7be3c5c (diff)
downloadlinux-a3afa29942b84b4e2548beacccc3a68b8d77e3dc.tar.bz2
ALSA: usb-audio: unlock on error in probe
We need to unlock before we returning on this error path. Fixes: 73ac9f5e5b43 ("ALSA: usb-audio: Add boot quirk for MOTU M Series") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Link: https://lore.kernel.org/r/20200115174604.rhanfgy4j3uc65cx@kili.mountain Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb')
-rw-r--r--sound/usb/card.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/card.c b/sound/usb/card.c
index 2f582ac7cf78..827fb0bc8b56 100644
--- a/sound/usb/card.c
+++ b/sound/usb/card.c
@@ -602,7 +602,7 @@ static int usb_audio_probe(struct usb_interface *intf,
if (! chip) {
err = snd_usb_apply_boot_quirk_once(dev, intf, quirk, id);
if (err < 0)
- return err;
+ goto __error;
/* it's a fresh one.
* now look for an empty slot and create a new card instance