Skip to contentSkip to conversation

ASoC: soc-compress: fix double unlock of fe card mutex

PATCH Applied Qiao Zhou 2 participants 2 messages Sep 12, 2014 – Sep 24, 2014

Subsystems (3)
lore
Share & tools
lore

Qiao Zhou

author
#0 lore raw

PATCH 1/1 ASoC: soc-compress: fix double unlock of fe card mutex

Fix double unlock of fe card mutex introduced by patch 8f70e515a8bb "ASoC: soc-pcm: fix dpcm_path_get error handling"

The first unlock is at line 106, and the unlock is at line 149. we should remove the first unlock.

---
 sound/soc/soc-compress.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
sound/soc/soc-compress.c +2 -4
index 3092b58..cecfab3 100644
@@ -102,13 +102,11 @@ static int soc_compr_open_fe(struct snd_compr_stream *cstream)
 	fe->dpcm[stream].runtime = fe_substream->runtime;
 
 	ret = dpcm_path_get(fe, stream, &list);
-	if (ret < 0) {
-		mutex_unlock(&fe->card->mutex);
+	if (ret < 0)
 		goto fe_err;
-	} else if (ret == 0) {
+	else if (ret == 0)
 		dev_dbg(fe->dev, "ASoC: %s no valid %s route\n",
 			fe->dai_link->name, stream ? "capture" : "playback");
-	}
 
 	/* calculate valid and active FE <-> BE dpcms */
 	dpcm_process_paths(fe, stream, &list, 1);
Signature · 1 line
1.7.0.4
maintainer Applied
#1 lore raw
Quoted 2 lines · Qiao Zhou

Fix double unlock of fe card mutex introduced by patch 8f70e515a8bb "ASoC: soc-pcm: fix dpcm_path_get error handling"

Applied, thanks.