linux/sound/soc/qcom
Zichen Xie 73cc3f905c ASoC: qcom: Fix NULL Dereference in asoc_qcom_lpass_cpu_platform_probe()
commit 49da1463c9 upstream.

A devm_kzalloc() in asoc_qcom_lpass_cpu_platform_probe() could
possibly return NULL pointer. NULL Pointer Dereference may be
triggerred without addtional check.
Add a NULL check for the returned pointer.

Fixes: b5022a36d2 ("ASoC: qcom: lpass: Use regmap_field for i2sctl and dmactl registers")
Cc: stable@vger.kernel.org
Signed-off-by: Zichen Xie <zichenxie0106@gmail.com>
Link: https://patch.msgid.link/20241006205737.8829-1-zichenxie0106@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2024-11-01 01:58:34 +01:00
..
qdsp6 ASoC: q6apm-lpass-dai: close graph on prepare errors 2024-07-05 09:33:45 +02:00
apq8016_sbc.c ASoC: qcom: convert not to use asoc_xxx() 2024-03-06 14:48:37 +00:00
apq8096.c ASoC: qcom: convert not to use asoc_xxx() 2024-03-06 14:48:37 +00:00
common.c ASoC: qcom: convert not to use asoc_xxx() 2024-03-06 14:48:37 +00:00
common.h ASoC: qcom: Fix building APQ8016 machine driver without SOUNDWIRE 2023-01-09 13:04:14 +00:00
Kconfig ASoC: qcom: Fix building APQ8016 machine driver without SOUNDWIRE 2023-01-09 13:04:14 +00:00
lpass-apq8016.c ASoC: qcom: merge DAI call back functions into ops 2023-08-14 13:10:14 +01:00
lpass-cdc-dma.c ASoC: qcom: Fix uninitialized pointer dmactl 2024-03-06 14:48:37 +00:00
lpass-cpu.c ASoC: qcom: Fix NULL Dereference in asoc_qcom_lpass_cpu_platform_probe() 2024-11-01 01:58:34 +01: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: merge DAI call back functions into ops 2023-08-14 13:10:14 +01: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: convert not to use asoc_xxx() 2024-03-06 14:48:37 +00:00
lpass-sc7180.c ASoC: qcom: merge DAI call back functions into ops 2023-08-14 13:10:14 +01:00
lpass-sc7280.c ASoC: qcom: merge DAI call back functions into ops 2023-08-14 13:10:14 +01:00
lpass.h ASoC: qcom: merge DAI call back functions into ops 2023-08-14 13:10:14 +01:00
Makefile ASoC: qcom: Fix building APQ8016 machine driver without SOUNDWIRE 2023-01-09 13:04:14 +00:00
sc7180.c ASoC: qcom: convert not to use asoc_xxx() 2024-03-06 14:48:37 +00:00
sc7280.c ASoC: qcom: convert not to use asoc_xxx() 2024-03-06 14:48:37 +00:00
sc8280xp.c ASoC: qcom: convert not to use asoc_xxx() 2024-03-06 14:48:37 +00:00
sdm845.c ASoC: qcom: convert not to use asoc_xxx() 2024-03-06 14:48:37 +00:00
sdw.c ASoC: qcom: convert not to use asoc_xxx() 2024-03-06 14:48:37 +00:00
sdw.h ASoC: qcom: Fix building APQ8016 machine driver without SOUNDWIRE 2023-01-09 13:04:14 +00:00
sm8250.c ASoC: qcom: sm8250: add qrb4210-rb2-sndcard compatible string 2024-11-01 01:58:28 +01:00
storm.c ASoC: qcom: convert not to use asoc_xxx() 2024-03-06 14:48:37 +00:00