]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: Intel: cht_bsw_rt5672: Fix MCLK leak on platform_clock_control error
authorAravind Anilraj <aravindanilraj0702@gmail.com>
Wed, 1 Apr 2026 22:05:06 +0000 (18:05 -0400)
committerMark Brown <broonie@kernel.org>
Fri, 3 Apr 2026 14:15:01 +0000 (15:15 +0100)
commitdced5a373a96cfd9f3bd0ffcf5339a7579d1473a
treef50a4f8f413d975e56d4d600fe1b2c742ccd6e55
parentb022e5c142efe4c5497e6cfda1f143618b4b9254
ASoC: Intel: cht_bsw_rt5672: Fix MCLK leak on platform_clock_control error

If snd_soc_dai_set_pll() or snd_soc_dai_set_sysclk() fail inside the
EVENT_ON path, the function returns without calling
clk_disable_unprepare() on ctx->mclk, which was already enabled earlier
in the same code path. Add the missing clk_disable_unprepare() calls
before returning the error.

Signed-off-by: Aravind Anilraj <aravindanilraj0702@gmail.com>
Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://patch.msgid.link/20260401220507.23557-4-aravindanilraj0702@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/cht_bsw_rt5672.c