]> git.ipfire.org Git - thirdparty/linux.git/commit
ASoC: fsl_asrc: fix m2m_init error path to use goto instead of bare return
authorShengjiu Wang <shengjiu.wang@nxp.com>
Wed, 15 Jul 2026 02:47:57 +0000 (10:47 +0800)
committerMark Brown <broonie@kernel.org>
Sun, 19 Jul 2026 21:25:10 +0000 (22:25 +0100)
commit890b4253134f3a39883af7d5bea67af9c494c56d
tree863af16f9d6829a9b0c336766d2915c96463e52e
parent1590cf0329716306e948a8fc29f1d3ee87d3989f
ASoC: fsl_asrc: fix m2m_init error path to use goto instead of bare return

When fsl_asrc_m2m_init() fails in fsl_asrc_probe(), the code did a
bare return ret, bypassing pm_runtime_disable() in err_pm_get_sync.
Use goto err_pm_get_sync to ensure proper cleanup on failure.

Fixes: 286d658477a4 ("ASoC: fsl_asrc: register m2m platform device")
Cc: stable@vger.kernel.org
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Link: https://patch.msgid.link/20260715024758.1252801-2-shengjiu.wang@oss.nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_asrc.c