Skip to content

Commit

Permalink
ALSA: usb-audio: unlock on error in probe
Browse files Browse the repository at this point in the history
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 <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20200115174604.rhanfgy4j3uc65cx@kili.mountain
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Dan Carpenter authored and tiwai committed Jan 15, 2020
1 parent 75663c0 commit a3afa29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/usb/card.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a3afa29

Please sign in to comment.