linux-stable/sound/soc
Dragos Tarcatu 3023806812 ASoC: topology: Fix memleak in soc_tplg_manifest_load()
commit 242c46c023 upstream.

In case of ABI version mismatch, _manifest needs to be freed as
it is just a copy of the original topology manifest. However, if
a driver manifest handler is defined, that would get executed and
the cleanup is never reached. Fix that by getting the return status
of manifest() instead of returning directly.

Fixes: 583958fa2e ("ASoC: topology: Make manifest backward compatible from ABI v4")
Signed-off-by: Dragos Tarcatu <dragos_tarcatu@mentor.com>
Link: https://lore.kernel.org/r/20200207185325.22320-3-dragos_tarcatu@mentor.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-03-11 18:03:09 +01:00
..
adi
amd
atmel ASoC: atmel: fix build error with CONFIG_SND_ATMEL_SOC_DMA=m 2020-02-28 16:36:03 +01:00
au1x ASoC: au1x: Fix timeout tests in au1xac97c_ac97_read() 2018-04-26 11:02:03 +02:00
bcm
blackfin
cirrus ASoC: cirrus: i2s: Fix {TX|RX}LinCtrlData setup 2018-07-03 11:24:48 +02:00
codecs ASoC: pcm512x: Fix unbalanced regulator enable call in probe error path 2020-03-11 18:03:06 +01:00
davinci ASoC: ti: davinci-mcasp: Fix slot mask settings when using multiple AXRs 2020-01-27 14:46:38 +01:00
dwc
fsl ASoC: imx-sgtl5000: put of nodes if finding codec fails 2020-01-27 14:46:13 +01:00
generic
hisilicon
img ASoC: img-parallel-out: Add pm_runtime_get/put to set_fmt callback 2017-12-25 14:26:28 +01:00
intel ASoC: intel: skl: Fix possible buffer overflow in debug outputs 2020-03-11 18:03:06 +01:00
jz4740
kirkwood ASoC: kirkwood: fix external clock probe defer 2019-12-05 15:36:49 +01:00
mediatek ASoC: mediatek: preallocate pages use platform device 2018-07-17 11:39:22 +02:00
mxs
nuc900 ASoC: nuc900: Fix a loop timeout test 2018-03-19 08:42:55 +01:00
omap ASoC: omap-dmic: Add pm_qos handling to avoid overruns with CPU_IDLE 2018-12-17 09:28:50 +01:00
pxa
qcom ASoC: qcom: Fix of-node refcount unbalance in apq8016_sbc_parse_of() 2020-01-27 14:46:21 +01:00
rockchip ASoc: rockchip: i2s: Fix RPM imbalance 2019-11-10 11:25:06 +01:00
samsung ASoC: samsung: odroid: Fix clock configuration for 44100 sample rate 2019-05-10 17:53:09 +02:00
sh ASoC: rsnd: fixup MIX kctrl registration 2019-12-17 20:38:58 +01:00
sirf ASoC: sirf: Fix potential NULL pointer dereference 2018-09-05 09:26:39 +02:00
spear
sti ASoC: sti: fix possible sleep-in-atomic 2020-02-05 14:18:20 +00:00
stm ASoC: stm32: spdifrx: fix race condition in irq handler 2020-01-17 19:45:44 +01:00
sunxi ASoC: sun8i-codec: Fix setting DAI data format 2020-02-28 16:35:51 +01:00
tegra ASoC: tegra_sgtl5000: fix device_node refcounting 2019-12-01 09:13:33 +01:00
txx9
ux500 ASoC: ux500: add MODULE_LICENSE tag 2018-02-25 11:07:51 +01:00
xtensa
zte ASoC: zte: Fix incorrect PCM format bit usages 2018-09-05 09:26:39 +02:00
Kconfig
Makefile
soc-ac97.c
soc-cache.c
soc-compress.c
soc-core.c Revert "ASoC: Fail card instantiation if DAI format setup fails" 2019-09-06 10:21:01 +02:00
soc-dapm.c ASoC: dapm: Correct DAPM handling of active widgets during shutdown 2020-03-11 18:03:06 +01:00
soc-devres.c
soc-generic-dmaengine-pcm.c ASoC: dmaengine: Make the pcm->name equal to pcm->id if the name is not set 2019-10-05 12:48:01 +02:00
soc-io.c
soc-jack.c ASoC: Jack: Fix NULL pointer dereference in snd_soc_jack_report 2019-12-17 20:39:27 +01:00
soc-ops.c
soc-pcm.c ASoC: pcm: Fix possible buffer overflow in dpcm state sysfs output 2020-03-11 18:03:06 +01:00
soc-topology.c ASoC: topology: Fix memleak in soc_tplg_manifest_load() 2020-03-11 18:03:09 +01:00
soc-utils.c