summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorQiao Zhou <zhouqiao@marvell.com>2014-06-04 19:42:06 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-09-17 09:22:05 -0700
commit4d47899c4db244a0c76f7e61b24f208a1a7f6c12 (patch)
tree274628e9d6c1d469ece4c1151f10b6b50e69b71f /sound
parent6fc3e7e50364e6367dd9cb188aeb0ef2d34fbb8c (diff)
ASoC: pcm: fix dpcm_path_put in dpcm runtime update
commit 7ed9de76ff342cbd717a9cf897044b99272cb8f8 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound')
-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 54d18f22a33e..4ea656770d65 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)