]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Sep 2023 07:48:09 +0000 (09:48 +0200)
commit65306c9e85883d593bef5ba3665aa37b76ff24c6
tree1c725ea1cf50a6d29f5d5545d59a39c50a4b7742
parent7a1044ea63d3f2677c41e544f2ed8ca4ff419cf5
ASoC: soc-compress: Fix deadlock in soc_compr_open_fe

[ Upstream commit 2222214749a9969e09454b9ba7febfdfb09c1c8d ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/soc-compress.c