ASoC: intel: Fix memleak in sst_media_open
When power_up_sst() fails, stream needs to be freed just like when try_module_get() fails. However, current code is returning directly and ends up leaking memory. Fixes: 0121327c ("ASoC: Intel: mfld-pcm: add control for powering up/down dsp") Signed-off-by: NDinghao Liu <dinghao.liu@zju.edu.cn> Acked-by: NPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20200813084112.26205-1-dinghao.liu@zju.edu.cnSigned-off-by: NMark Brown <broonie@kernel.org>
Showing
想要评论请 注册 或 登录