diff options
| author | Hsieh Hung-En <hungen3108@gmail.com> | 2026-04-15 11:02:52 +0800 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-04-16 13:39:10 +0100 |
| commit | c15bc1681045f158811643d6c990f87c590dd693 (patch) | |
| tree | 8fa8d592605d50d68b293fbbca701bce004b41ee /kernel/workqueue.c | |
| parent | 37e9faf21670cf86d36eebc3b4d27afe6819983a (diff) | |
ASoC: es8311: Fix clock leak and check update_bits in set_bias_level()
In es8311_set_bias_level(), the return value of
snd_soc_component_update_bits() was ignored. If this fails, not only
is the VMID selection not applied, but the previously enabled mclk
is left running, leading to an unbalanced clock reference count
(clock leak).
Check the return value and ensure clk_disable_unprepare() is called on
failure to maintain proper resource management.
Signed-off-by: Hsieh Hung-En <hungen3108@gmail.com>
Link: https://patch.msgid.link/20260415030252.5547-3-hungen3108@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'kernel/workqueue.c')
0 files changed, 0 insertions, 0 deletions
