linux/sound/soc/qcom/qdsp6
Dan Carpenter ac1e6bc146
ASoC: qdsp6: fix a use after free bug in open()
This code frees "graph" and then dereferences to save the error code.
Save the error code first and then use gotos to unwind the allocation.

Fixes: 59716aa3f9 ("ASoC: qdsp6: Fix an IS_ERR() vs NULL bug")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20211217150007.GB16611@kili
Signed-off-by: Mark Brown <broonie@kernel.org>
2021-12-21 18:05:40 +00:00
..
audioreach.c ASoC: qdsp6: audioreach: add module configuration command helpers 2021-10-26 13:50:05 +01:00
audioreach.h ASoC: qdsp6: qdsp6: q6prm: handle clk disable correctly 2021-11-16 14:29:43 +00:00
Makefile ASoC: qdsp6: audioreach: add support for q6prm-clocks 2021-10-26 13:50:12 +01:00
q6adm.c ASoC: qdsp6: q6adm: improve error reporting 2021-11-16 14:29:48 +00:00
q6adm.h ASoC: qdsp6: q6adm: Add q6adm driver 2018-05-21 16:40:24 +01:00
q6afe-clocks.c ASoC: qdsp6: q6afe-clocks: move audio-clocks to common file 2021-10-26 13:49:59 +01:00
q6afe-dai.c ASoC: qdsp6: q6afe-dai: move lpass audio ports to common file 2021-10-26 13:49:58 +01:00
q6afe.c ASoC: qdsp6: q6afe: Add Quinary MI2S ports 2021-06-15 16:39:38 +01:00
q6afe.h ASoC: qdsp6: q6afe: Add Quinary MI2S ports 2021-06-15 16:39:38 +01:00
q6apm-dai.c ASoC: qdsp6: audioreach: add q6apm-dai support 2021-10-26 13:50:09 +01:00
q6apm-lpass-dais.c ASoC: qdsp6: audioreach: add q6apm lpass dai support 2021-10-26 13:50:10 +01:00
q6apm.c ASoC: qdsp6: fix a use after free bug in open() 2021-12-21 18:05:40 +00:00
q6apm.h ASoC: qdsp6: audioreach: add q6apm support 2021-10-26 13:50:04 +01:00
q6asm-dai.c ASoC: qdsp6: q6asm: fix q6asm_dai_prepare error handling 2021-11-16 14:29:45 +00:00
q6asm.c ASoC: qdsp6: q6asm: fix cppcheck warnings for unnecessary initialization 2021-08-09 13:49:12 +01:00
q6asm.h ASoC: qcom: q6asm: align function prototypes 2021-03-10 13:01:54 +00:00
q6core.c ASoC: qdsp6: add ifdef CONFIG_OF around of_device_id 2020-09-25 18:36:58 +01:00
q6core.h
q6dsp-common.c
q6dsp-common.h
q6dsp-errno.h
q6dsp-lpass-clocks.c ASoC: qdsp6: q6afe-clocks: move audio-clocks to common file 2021-10-26 13:49:59 +01:00
q6dsp-lpass-clocks.h ASoC: qdsp6: q6afe-clocks: move audio-clocks to common file 2021-10-26 13:49:59 +01:00
q6dsp-lpass-ports.c ASoC: qdsp6: q6afe-dai: move lpass audio ports to common file 2021-10-26 13:49:58 +01:00
q6dsp-lpass-ports.h ASoC: qdsp6: q6afe-dai: move lpass audio ports to common file 2021-10-26 13:49:58 +01:00
q6prm-clocks.c ASoC: qdsp6: audioreach: add support for q6prm-clocks 2021-10-26 13:50:12 +01:00
q6prm.c ASoC: qdsp6: qdsp6: q6prm: handle clk disable correctly 2021-11-16 14:29:43 +00:00
q6prm.h ASoC: qdsp6: audioreach: add q6prm support 2021-10-26 13:50:11 +01:00
q6routing.c ASoC: qdsp6: q6routing: validate port id before setting up route 2021-11-16 14:29:49 +00:00
q6routing.h ASoC: qdsp6: q6routing: Add q6routing driver 2018-05-21 16:41:48 +01:00
topology.c ASoC: qdsp6: audioreach: Fix clang -Wimplicit-fallthrough 2021-10-28 13:28:18 +01:00