diff options
author | Qiao Zhou <zhouqiao@marvell.com> | 2014-06-04 19:42:06 +0800 |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2014-09-17 16:55:07 +0200 |
commit | 672d675e65af79575304b6a9a792aa939fab546a (patch) | |
tree | d804a62cce2ad851709593fe90ad2c282ff91341 /sound | |
parent | 0eff4d68aefc30b4b759aa6c6d6e554d430a4a4e (diff) | |
download | lwn-672d675e65af79575304b6a9a792aa939fab546a.tar.gz lwn-672d675e65af79575304b6a9a792aa939fab546a.zip |
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: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/soc-pcm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c index 330c9a6b5cb5..875cae86d708 100644 --- a/sound/soc/soc-pcm.c +++ b/sound/soc/soc-pcm.c @@ -1882,6 +1882,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) |