mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-25 20:10:23 +09:00
UPSTREAM: ASoC: soc-compress: Fix deadlock in soc_compr_open_fe
[ Upstream commit2222214749] Modify the error handling flow by release lock. The require mutex will keep holding if open fail. Fixes:aa9ff6a495("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> Bug: 303236405 Change-Id: Ib7350b211390b7c2730fc99d6e87d41fe9d3a87f Signed-off-by: Yixuan Jiang <yixuanjiang@google.com>
This commit is contained in:
@@ -166,6 +166,7 @@ open_err:
|
||||
snd_soc_dai_compr_shutdown(cpu_dai, cstream, 1);
|
||||
out:
|
||||
dpcm_path_put(&list);
|
||||
snd_soc_dpcm_mutex_unlock(fe);
|
||||
be_err:
|
||||
fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO;
|
||||
snd_soc_card_mutex_unlock(fe->card);
|
||||
|
||||
Reference in New Issue
Block a user