1 From 7ed9de76ff342cbd717a9cf897044b99272cb8f8 Mon Sep 17 00:00:00 2001
2 From: Qiao Zhou <zhouqiao@marvell.com>
3 Date: Wed, 4 Jun 2014 19:42:06 +0800
4 Subject: ASoC: pcm: fix dpcm_path_put in dpcm runtime update
6 From: Qiao Zhou <zhouqiao@marvell.com>
8 commit 7ed9de76ff342cbd717a9cf897044b99272cb8f8 upstream.
10 we need to release dapm widget list after dpcm_path_get in
11 soc_dpcm_runtime_update. otherwise, there will be potential memory
12 leak. add dpcm_path_put to fix it.
14 Signed-off-by: Qiao Zhou <zhouqiao@marvell.com>
15 Signed-off-by: Mark Brown <broonie@linaro.org>
16 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
19 sound/soc/soc-pcm.c | 1 +
20 1 file changed, 1 insertion(+)
22 --- a/sound/soc/soc-pcm.c
23 +++ b/sound/soc/soc-pcm.c
24 @@ -2069,6 +2069,7 @@ int soc_dpcm_runtime_update(struct snd_s
25 dpcm_be_disconnect(fe, SNDRV_PCM_STREAM_PLAYBACK);
28 + dpcm_path_put(&list);
30 /* skip if FE doesn't have capture capability */
31 if (!fe->cpu_dai->driver->capture.channels_min)