[PATCH v4 0/4] ASoC: Intel: Fix MCLK leaks in

aravindanilraj0702@gmail.com posted 4 patches 5 days, 7 hours ago
sound/soc/intel/boards/bytcr_rt5640.c   | 4 +++-
sound/soc/intel/boards/bytcr_rt5651.c   | 4 +++-
sound/soc/intel/boards/cht_bsw_rt5672.c | 4 +++-
3 files changed, 9 insertions(+), 3 deletions(-)
[PATCH v4 0/4] ASoC: Intel: Fix MCLK leaks in
Posted by aravindanilraj0702@gmail.com 5 days, 7 hours ago
From: Aravind Anilraj <aravindanilraj0702@gmail.com>

In three Intel ASoC board drivers, the EVENT_ON path in
platform_clock_control() enables MCLK via clk_prepare_enable() but fails
to call clk_disable_unprepare() on subsequent error paths, leaking the
clock reference.

v4: Split dev_err formatting fix into a separate patch 4 as suggested by Mark Brown. Add return code to the error message for better diagnostics.

v3: Restored missing clk_disable_unprepare() guard in patch 2 that was
accidently dropped during v2 rebase.

v2: Guard clk_disable_unprepare() with SND_SOC_DAPM_EVENT_ON() to avoid
calling it in the EVENT_OFF error path where MCLK was never enabled.

Fix this across all three affected drivers.

Aravind Anilraj (4):
  ASoC: Intel: bytcr_rt5640: Fix MCLK leak on platform_clock_control
    error
  ASoC: Intel: bytcr_rt5651: Fix MCLK leak on platform_clock_control
    error
  ASoC: Intel: cht_bsw_rt5672: Fix MCLK leak in platform_clock_control
  ASoC: Intel: boards: Log error code in MCLK configuration failure

 sound/soc/intel/boards/bytcr_rt5640.c   | 4 +++-
 sound/soc/intel/boards/bytcr_rt5651.c   | 4 +++-
 sound/soc/intel/boards/cht_bsw_rt5672.c | 4 +++-
 3 files changed, 9 insertions(+), 3 deletions(-)

-- 
2.47.3