]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/3.16.3/asoc-pcm-fix-dpcm_path_put-in-dpcm-runtime-update.patch
4.9-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 3.16.3 / asoc-pcm-fix-dpcm_path_put-in-dpcm-runtime-update.patch
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
5
6 From: Qiao Zhou <zhouqiao@marvell.com>
7
8 commit 7ed9de76ff342cbd717a9cf897044b99272cb8f8 upstream.
9
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.
13
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>
17
18 ---
19 sound/soc/soc-pcm.c | 1 +
20 1 file changed, 1 insertion(+)
21
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);
26 }
27
28 + dpcm_path_put(&list);
29 capture:
30 /* skip if FE doesn't have capture capability */
31 if (!fe->cpu_dai->driver->capture.channels_min)