ASoC: soc-compress: Fix deadlock in soc_compr_open_fe
authoryixuanjiang <yixuanjiang@google.com>
Mon, 19 Jun 2023 03:31:27 +0000 (11:31 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 21 Jun 2023 12:42:44 +0000 (13:42 +0100)
commit2222214749a9969e09454b9ba7febfdfb09c1c8d
tree5f5e78995ec74bd5a07a28905fdd30cbb17083a8
parent1f1ef7e5bbe2de125da413e238915f6047ea4ba2
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: aa9ff6a4955f ("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>
sound/soc/soc-compress.c