Skip to content

Commit 2222214

Browse files
yixuanjiang-twbroonie
authored andcommitted
ASoC: soc-compress: Fix deadlock in soc_compr_open_fe
Modify the error handling flow by release lock. The require mutex will keep holding if open fail. Fixes: aa9ff6a ("ASoC: soc-compress: Reposition and add pcm_mutex") Signed-off-by: yixuanjiang <yixuanjiang@google.com> Link: https://lore.kernel.org/r/20230619033127.2522477-1-yixuanjiang@google.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 1f1ef7e commit 2222214

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sound/soc/soc-compress.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ static int soc_compr_open_fe(struct snd_compr_stream *cstream)
194194
snd_soc_dai_compr_shutdown(cpu_dai, cstream, 1);
195195
out:
196196
dpcm_path_put(&list);
197+
snd_soc_dpcm_mutex_unlock(fe);
197198
be_err:
198199
fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO;
199200
snd_soc_card_mutex_unlock(fe->card);

0 commit comments

Comments
 (0)