]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: wm_adsp: Fix missing mutex_lock in wm_adsp_write_ctl()
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Thu, 7 Mar 2024 11:02:27 +0000 (11:02 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Apr 2024 14:38:09 +0000 (16:38 +0200)
commit65efeec07c8eae47243dc4529dd0b75c81618e7a
treeeaecb03ce19b68c21cf7c2e7dbfd670c71e03cab
parenta751a20c8b91c1343f074468fee6cc9e721c8a1e
ASoC: wm_adsp: Fix missing mutex_lock in wm_adsp_write_ctl()

[ Upstream commit f193957b0fbbba397c8bddedf158b3bf7e4850fc ]

wm_adsp_write_ctl() must hold the pwr_lock mutex when calling
cs_dsp_get_ctl().

This was previously partially fixed by commit 781118bc2fc1
("ASoC: wm_adsp: Fix missing locking in wm_adsp_[read|write]_ctl()")
but this only put locking around the call to cs_dsp_coeff_write_ctrl(),
missing the call to cs_dsp_get_ctl().

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Fixes: 781118bc2fc1 ("ASoC: wm_adsp: Fix missing locking in wm_adsp_[read|write]_ctl()")
Link: https://msgid.link/r/20240307110227.41421-1-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/wm_adsp.c