linux/sound/soc/intel
Cássio Gabriel 13d30682e8
ASoC: Intel: bytcr_wm5102: Fix MCLK leak on platform_clock_control error
If byt_wm5102_prepare_and_enable_pll1() fails in the
SND_SOC_DAPM_EVENT_ON() path, platform_clock_control() returns after
clk_prepare_enable(priv->mclk) without disabling the clock again.

This leaks an MCLK enable reference on failed power-up attempts. Add the
missing clk_disable_unprepare() on the error path, matching the unwind
used by the other Intel platform_clock_control() implementations.

Fixes: 9a87fc1e06 ("ASoC: Intel: bytcr_wm5102: Add machine driver for BYT/WM5102")
Cc: stable@vger.kernel.org
Signed-off-by: Cássio Gabriel <cassiogabrielcontato@gmail.com>
Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
Reviewed-by: Hans de Goede <johannes.goede@oss.qualcomm.com>
Link: https://patch.msgid.link/20260427-bytcr-wm5102-mclk-leak-v1-1-02b96d08e99c@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2026-04-28 17:50:08 +09:00
..
atom ASoC: intel: name back to pcm_new()/pcm_free() 2026-03-16 13:37:53 +00:00
avs sound updates for 7.1-rc1 2026-04-15 09:20:49 -07:00
boards ASoC: Intel: bytcr_wm5102: Fix MCLK leak on platform_clock_control error 2026-04-28 17:50:08 +09:00
catpt ASoC: Merge up fixes 2026-03-24 17:29:47 +00:00
common ASoC: Intel: soc-acpi-intel-ptl-match: drop rt722 monolithic match tables 2026-03-26 16:22:41 +00:00
keembay ASoC: intel: name back to pcm_new()/pcm_free() 2026-03-16 13:37:53 +00:00
Kconfig ASoC: Intel: avs: Include CPUID header at file scope 2026-03-28 00:29:30 +01:00
Makefile ASoC: Intel: Remove skylake driver 2024-08-19 13:10:55 +01:00