Commit a3afa299 authored by Dan Carpenter's avatar Dan Carpenter Committed by Takashi Iwai

ALSA: usb-audio: unlock on error in probe

We need to unlock before we returning on this error path.

Fixes: 73ac9f5e ("ALSA: usb-audio: Add boot quirk for MOTU M Series")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20200115174604.rhanfgy4j3uc65cx@kili.mountainSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 75663c09
...@@ -602,7 +602,7 @@ static int usb_audio_probe(struct usb_interface *intf, ...@@ -602,7 +602,7 @@ static int usb_audio_probe(struct usb_interface *intf,
if (! chip) { if (! chip) {
err = snd_usb_apply_boot_quirk_once(dev, intf, quirk, id); err = snd_usb_apply_boot_quirk_once(dev, intf, quirk, id);
if (err < 0) if (err < 0)
return err; goto __error;
/* it's a fresh one. /* it's a fresh one.
* now look for an empty slot and create a new card instance * now look for an empty slot and create a new card instance
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment