ASoC: pcm: fix dpcm_path_put in dpcm runtime update
authorQiao Zhou <zhouqiao@marvell.com>
Wed, 4 Jun 2014 11:42:06 +0000 (19:42 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Sep 2014 16:19:16 +0000 (09:19 -0700)
commitc1ccac415f7cb78f9f3709350f0eb60df775abdb
treee8f37f55efce78aa6c27ce31574347358396f830
parent32eda01126f6936ec5287b395ef752ac88e6a17f
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>
sound/soc/soc-pcm.c