linux/sound/soc/intel/atom
Dinghao Liu 062fa09f44
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: 0121327c1a ("ASoC: Intel: mfld-pcm: add control for powering up/down dsp")
Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200813084112.26205-1-dinghao.liu@zju.edu.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
2020-08-17 12:28:57 +01:00
..
sst ASoC: Intel: drop unnecessary list_empty 2020-07-30 22:38:39 +01:00
Makefile ASoC: SOF/Intel: clarify SPDX license with GPL-2.0-only 2020-05-01 17:45:24 +01:00
sst-atom-controls.c ASoC: Intel: atom: fix 'defined but not used' warning 2020-07-01 20:58:30 +01:00
sst-atom-controls.h ASoC: Intel: Skylake: Replace zero-length array with flexible-array 2020-05-12 17:14:33 +01:00
sst-mfld-dsp.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 285 2019-06-05 17:36:37 +02:00
sst-mfld-platform-compress.c ASoC: intel: atom: use snd_compress_ops 2020-04-21 19:01:58 +01:00
sst-mfld-platform-pcm.c ASoC: intel: Fix memleak in sst_media_open 2020-08-17 12:28:57 +01:00
sst-mfld-platform.h ASoC: intel: atom: use snd_compress_ops 2020-04-21 19:01:58 +01:00