mirror of
https://github.com/fail0verflow/switch-linux.git
synced 2025-05-04 02:34:21 -04:00
ALSA: mixart, fix lock imbalance
There is an omitted unlock in one snd_mixart_hw_params fail path. Fix it. Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Cc: <stable@kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
91054598f7
commit
82f5d57163
1 changed files with 1 additions and 0 deletions
|
@ -607,6 +607,7 @@ static int snd_mixart_hw_params(struct snd_pcm_substream *subs,
|
||||||
/* set the format to the board */
|
/* set the format to the board */
|
||||||
err = mixart_set_format(stream, format);
|
err = mixart_set_format(stream, format);
|
||||||
if(err < 0) {
|
if(err < 0) {
|
||||||
|
mutex_unlock(&mgr->setup_mutex);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue