Skip to content

Commit a3afa29

Browse files
Dan Carpentertiwai
authored andcommitted
ALSA: usb-audio: unlock on error in probe
We need to unlock before we returning on this error path. Fixes: 73ac9f5 ("ALSA: usb-audio: Add boot quirk for MOTU M Series") Signed-off-by: Dan Carpenter <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent 75663c0 commit a3afa29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/usb/card.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ static int usb_audio_probe(struct usb_interface *intf,
602602
if (! chip) {
603603
err = snd_usb_apply_boot_quirk_once(dev, intf, quirk, id);
604604
if (err < 0)
605-
return err;
605+
goto __error;
606606

607607
/* it's a fresh one.
608608
* now look for an empty slot and create a new card instance

0 commit comments

Comments
 (0)