]> 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:35:57 +0000 (16:35 +0200)
commit3e1a29fb81c2fbaedf1e55e38244702deead85ca
tree2d5b1728889ecfb3b9ada979b52b117b5348acad
parent40613ea1d5ea36c97b11732ea5327dca87388929
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