From: Jiri Slaby Date: Wed, 11 Mar 2009 19:11:41 +0000 (+0100) Subject: ALSA: mixart, fix lock imbalance X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=82f5d57163abed2e5ff271d03217b6f90c616eb8;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git 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 Cc: Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/mixart/mixart.c b/sound/pci/mixart/mixart.c index f23a73577c22..bb162507fe6c 100644 --- a/sound/pci/mixart/mixart.c +++ b/sound/pci/mixart/mixart.c @@ -607,6 +607,7 @@ static int snd_mixart_hw_params(struct snd_pcm_substream *subs, /* set the format to the board */ err = mixart_set_format(stream, format); if(err < 0) { + mutex_unlock(&mgr->setup_mutex); return err; }