ALSA: usb-audio: unlock on error in probe
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 15 Jan 2020 17:46:04 +0000 (20:46 +0300)
committerTakashi Iwai <tiwai@suse.de>
Wed, 15 Jan 2020 19:26:09 +0000 (20:26 +0100)
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>
sound/usb/card.c

index 2f582ac7cf789157141e70e9df2abd54a9a5ec3c..827fb0bc8b56199125fc048f0510774d42a82ac6 100644 (file)
@@ -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