TencentOS-kernel/sound/soc/qcom
Srinivasa Rao Mandadapu 99a2db3aeb ASoC: qcom: lpass-platform: Fix memory leak
[ Upstream commit bd6327fda2f3ded85b69b3c3125c99aaa51c7881 ]

lpass_pcm_data is not freed in error paths. Free it in
error paths to avoid memory leak.

Fixes: 022d00ee0b55 ("ASoC: lpass-platform: Fix broken pcm data usage")
Signed-off-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: V Sujith Kumar Reddy <vsujithk@codeaurora.org>
Signed-off-by: Srinivasa Rao Mandadapu <srivasam@codeaurora.org>
Link: https://lore.kernel.org/r/1605416210-14530-1-git-send-email-srivasam@codeaurora.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-16 16:41:19 +08:00
..
qdsp6 ASoC: q6routing: add dummy register read/write function 2021-03-16 16:34:35 +08:00
Kconfig ASoC: qcom: Drop HAS_DMA dependency to fix link failure 2021-03-16 16:32:39 +08:00
Makefile Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
apq8016_sbc.c ASoC: qcom: Set card->owner to avoid warnings 2021-03-16 16:36:15 +08:00
apq8096.c ASoC: qcom: Set card->owner to avoid warnings 2021-03-16 16:36:15 +08:00
common.c ASoC: qcom: common: Fix refcount imbalance on error 2021-03-16 16:36:15 +08:00
common.h Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
lpass-apq8016.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
lpass-cpu.c ASoC: qcom: lpass-cpu: fix concurrency issue 2021-03-16 16:38:32 +08:00
lpass-ipq806x.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
lpass-lpaif-reg.h Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
lpass-platform.c ASoC: qcom: lpass-platform: Fix memory leak 2021-03-16 16:41:19 +08:00
lpass.h Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
sdm845.c ASoC: qcom: sdm845: set driver name correctly 2021-03-16 16:40:40 +08:00
storm.c ASoC: qcom: Set card->owner to avoid warnings 2021-03-16 16:36:15 +08:00