From: Shengjiu Wang <[email protected]>

Both fsl_asrc_probe() and fsl_easrc_probe() call fsl_asrc_m2m_init()
near the end of their probe functions. On failure, the original code
did a bare return ret, bypassing the existing error labels that call
pm_runtime_disable(). This leaves runtime PM enabled and the device
in an inconsistent state after a failed probe.

Fix both drivers by replacing the bare return with a goto to the
appropriate cleanup label (err_pm_get_sync for fsl_asrc and
err_pm_disable for fsl_easrc), ensuring pm_runtime_disable() is
always called on the probe error path.

Shengjiu Wang (2):
  ASoC: fsl_asrc: fix m2m_init error path to use goto instead of bare
    return
  ASoC: fsl_easrc: fix m2m_init error path to use goto instead of bare
    return

 sound/soc/fsl/fsl_asrc.c  | 2 +-
 sound/soc/fsl/fsl_easrc.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

--
2.34.1

Reply via email to