Commit 672d675e65af79575304b6a9a792aa939fab546a

Authored by Qiao Zhou
Committed by Jiri Slaby
1 parent 0eff4d68ae

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>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

... ... @@ -1882,6 +1882,7 @@
1882 1882 dpcm_be_disconnect(fe, SNDRV_PCM_STREAM_PLAYBACK);
1883 1883 }
1884 1884  
  1885 + dpcm_path_put(&list);
1885 1886 capture:
1886 1887 /* skip if FE doesn't have capture capability */
1887 1888 if (!fe->cpu_dai->driver->capture.channels_min)