diff options
author | Mark Brown <broonie@kernel.org> | 2023-09-26 16:14:44 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-09-26 16:14:44 +0200 |
commit | af08458988cb5dd4b4ff87cfb9da81c6d2c8ef7a (patch) | |
tree | 5a71f1c4e3099d7cfe4c6f880e707173b6ec9cda /sound/soc/sof/sof-audio.c | |
parent | e952e89b0602aeb856396eac4306098249c43548 (diff) | |
parent | 2b21207afd06714986a3d22442ed4860ba4f9ced (diff) | |
download | linux-stable-af08458988cb5dd4b4ff87cfb9da81c6d2c8ef7a.tar.gz linux-stable-af08458988cb5dd4b4ff87cfb9da81c6d2c8ef7a.tar.bz2 linux-stable-af08458988cb5dd4b4ff87cfb9da81c6d2c8ef7a.zip |
ASoC: Merge up fixes
For the benefit of CI.
Diffstat (limited to 'sound/soc/sof/sof-audio.c')
-rw-r--r-- | sound/soc/sof/sof-audio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/sof/sof-audio.c b/sound/soc/sof/sof-audio.c index 9c2359d10ecf..563fe6f7789f 100644 --- a/sound/soc/sof/sof-audio.c +++ b/sound/soc/sof/sof-audio.c @@ -212,7 +212,8 @@ widget_free: sof_widget_free_unlocked(sdev, swidget); use_count_decremented = true; core_put: - snd_sof_dsp_core_put(sdev, swidget->core); + if (!use_count_decremented) + snd_sof_dsp_core_put(sdev, swidget->core); pipe_widget_free: if (swidget->id != snd_soc_dapm_scheduler) sof_widget_free_unlocked(sdev, swidget->spipe->pipe_widget); |