summaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorQiao Zhou <zhouqiao@marvell.com>2014-06-04 19:42:06 +0800
committerMark Brown <broonie@linaro.org>2014-06-21 11:29:42 +0100
commit7ed9de76ff342cbd717a9cf897044b99272cb8f8 (patch)
tree330b0f15a6b6cc34a6bfe077b0890a6ef2d74096 /sound/soc
parent7171511eaec5bf23fb06078f59784a3a0626b38f (diff)
downloadop-kernel-dev-7ed9de76ff342cbd717a9cf897044b99272cb8f8.zip
op-kernel-dev-7ed9de76ff342cbd717a9cf897044b99272cb8f8.tar.gz
ASoC: pcm: fix dpcm_path_put in dpcm runtime update
we need to release dapm widget list after dpcm_path_get in soc_dpcm_runtime_update. otherwise, there will be potential memory leak. add dpcm_path_put to fix it. Signed-off-by: Qiao Zhou <zhouqiao@marvell.com> Signed-off-by: Mark Brown <broonie@linaro.org> Cc: stable@vger.kernel.org
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/soc-pcm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c
index 54d18f2..4ea6567 100644
--- a/sound/soc/soc-pcm.c
+++ b/sound/soc/soc-pcm.c
@@ -2069,6 +2069,7 @@ int soc_dpcm_runtime_update(struct snd_soc_card *card)
dpcm_be_disconnect(fe, SNDRV_PCM_STREAM_PLAYBACK);
}
+ dpcm_path_put(&list);
capture:
/* skip if FE doesn't have capture capability */
if (!fe->cpu_dai->driver->capture.channels_min)
OpenPOWER on IntegriCloud