ALSA: usb-audio: unlock on error in probe

[ Upstream commit a3afa29942 ]

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

Fixes: 73ac9f5e5b ("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: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Dan Carpenter 2020-01-15 20:46:04 +03:00 committed by Greg Kroah-Hartman
parent 480494e28a
commit f51caa62de
1 changed files with 1 additions and 1 deletions

View File

@ -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