linux/sound/soc/qcom
Jianglei Nie df5b4aca72
ASoC: qdsp6: fix potential memory leak in q6apm_get_audioreach_graph()
q6apm_get_audioreach_graph() allocates a memory chunk for graph->graph
with audioreach_alloc_graph_pkt(). When idr_alloc() fails, graph->graph
is not released, which will lead to a memory leak.

We can release the graph->graph with kfree() when idr_alloc() fails to
fix the memory leak.

Signed-off-by: Jianglei Nie <niejianglei2021@163.com>
Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20220629182520.2164409-1-niejianglei2021@163.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2022-07-07 17:16:36 +01:00
..
qdsp6 ASoC: qdsp6: fix potential memory leak in q6apm_get_audioreach_graph() 2022-07-07 17:16:36 +01:00
apq8016_sbc.c ASoC: soc-card: Create jack kcontrol without pins 2022-04-14 17:37:21 +01:00
apq8096.c ASoC: qcom: apq8096: Constify static snd_soc_ops 2021-10-01 19:35:05 +01:00
common.c ASoC: qcom: common: Parse "pin-switches" and "widgets" from DT 2021-12-23 18:34:26 +00:00
common.h ASoC: qcom: remove unused header files from common.h 2018-08-06 12:50:07 +01:00
Kconfig ASoC: qcom: Add driver support for ALC5682I-VS 2022-04-05 10:23:11 +01:00
lpass-apq8016.c ASoC: qcom: lpass: Fix i2s ctl register bit map 2021-02-05 17:16:40 +00:00
lpass-cdc-dma.c ASoC: qcom: Add lpass CPU driver for codec dma control 2022-02-24 20:21:46 +00:00
lpass-cpu.c ASoC: qcom: Add regmap config support for codec dma driver 2022-02-24 20:21:44 +00:00
lpass-hdmi.c ASoC: qcom: lpass-hdmi: remove useless return 2021-03-10 13:01:49 +00:00
lpass-hdmi.h ASoC: qcom: Add support for lpass hdmi driver 2020-10-08 20:27:34 +01:00
lpass-ipq806x.c ASoC: qcom: lpass-ipq806x: fix bitwidth regmap field 2021-01-20 16:46:47 +00:00
lpass-lpaif-reg.h ASoC: qcom: Add register definition for codec rddma and wrdma 2022-02-24 20:21:42 +00:00
lpass-platform.c ASoC: qcom: lpass-platform: Update VMA access permissions in mmap callback 2022-06-01 12:24:10 +02:00
lpass-sc7180.c ASoC: qcom: Add four speaker support on MI2S secondary 2021-06-14 15:01:05 +01:00
lpass-sc7280.c ASoC: qcom: lpass-sc7280: Add platform driver for lpass audio 2022-02-24 20:21:48 +00:00
lpass.h ASoC: qcom: Add lpass CPU driver for codec dma control 2022-02-24 20:21:46 +00:00
Makefile ASoC: qcom: lpass-sc7280: Add platform driver for lpass audio 2022-02-24 20:21:48 +00:00
sc7180.c ASoC: soc-card: Create jack kcontrol without pins 2022-04-14 17:37:21 +01:00
sc7280.c ASoC: qcom: SC7280: Update machine driver startup, shutdown callbacks 2022-04-26 15:13:42 +01:00
sdm845.c ASoC: soc-card: Create jack kcontrol without pins 2022-04-14 17:37:21 +01:00
sm8250.c ASoC: soc-card: Create jack kcontrol without pins 2022-04-14 17:37:21 +01:00
storm.c ASoC: qcom: Set card->owner to avoid warnings 2020-08-21 16:12:10 +01:00