| From b15bffa4d452f3d6760c43f963dfe1a83a60273a Mon Sep 17 00:00:00 2001 |
| From: Dan Carpenter <dan.carpenter@oracle.com> |
| Date: Wed, 15 Jan 2020 20:46:04 +0300 |
| Subject: [PATCH] ALSA: usb-audio: unlock on error in probe |
| |
| commit a3afa29942b84b4e2548beacccc3a68b8d77e3dc upstream. |
| |
| 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> |
| Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> |
| |
| diff --git a/sound/usb/card.c b/sound/usb/card.c |
| index e6a618a23994..54f9ce38471e 100644 |
| --- a/sound/usb/card.c |
| +++ b/sound/usb/card.c |
| @@ -599,7 +599,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 |
| -- |
| 2.7.4 |
| |