linux/sound/soc/qcom
Aleksandr Mishin f9f7f29f64
ASoC: qcom: Adjust issues in case of DT error in asoc_qcom_lpass_cpu_platform_probe()
If IORESOURCE_MEM "lpass-rxtx-cdc-dma-lpm" or "lpass-va-cdc-dma-lpm"
resources is not provided in Device Tree due to any error,
platform_get_resource_byname() will return NULL which is later
dereferenced. According to sound/qcom,lpass-cpu.yaml, these resources
are provided, but DT can be broken due to any error. In such cases driver
must be able to protect itself, since the DT is external data for the
driver.
Adjust this issues by adding NULL return check.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: b138706225 ("ASoC: qcom: Add regmap config support for codec dma driver")
Signed-off-by: Aleksandr Mishin <amishin@t-argos.ru>
Link: https://patch.msgid.link/20240605104953.12072-1-amishin@t-argos.ru
Signed-off-by: Mark Brown <broonie@kernel.org>
2024-06-26 18:35:51 +01:00
..
qdsp6 ASoC: qcom: display port changes 2024-06-23 13:13:07 +01:00
apq8016_sbc.c ASoC: qcom: Use snd_soc_substream_to_rtd() for accessing private_data 2024-05-06 23:59:47 +09:00
apq8096.c ASoC: qcom: Fix trivial code style issues 2023-12-18 14:04:25 +00:00
common.c ASoC: qcom: common: add Display port Jack function 2024-06-18 14:20:09 +01:00
common.h ASoC: qcom: common: add Display port Jack function 2024-06-18 14:20:09 +01:00
Kconfig ASoC: qcom: Add x1e80100 sound machine driver 2023-12-18 14:04:22 +00:00
lpass-apq8016.c ASoC: qcom: Fix trivial code style issues 2023-12-18 14:04:25 +00:00
lpass-cdc-dma.c ASoC: qcom: Fix uninitialized pointer dmactl 2024-02-21 14:01:17 +00:00
lpass-cpu.c ASoC: qcom: Adjust issues in case of DT error in asoc_qcom_lpass_cpu_platform_probe() 2024-06-26 18:35:51 +01:00
lpass-hdmi.c ASoC: qcom: Fix trivial code style issues 2023-12-18 14:04:25 +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: Fix trivial code style issues 2023-12-18 14:04:25 +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: Fix trivial code style issues 2023-12-18 14:04:25 +00:00
lpass-sc7180.c ASoC: qcom: Fix trivial code style issues 2023-12-18 14:04:25 +00:00
lpass-sc7280.c ASoC: qcom: lpass: Make asoc_qcom_lpass_cpu_platform_remove() return void 2023-10-23 13:29:47 +01:00
lpass.h ASoC: qcom: Fix trivial code style issues 2023-12-18 14:04:25 +00:00
Makefile ASoC: qcom: Use *-y instead of *-objs in Makefile 2024-05-08 11:39:26 +09:00
sc7180.c ASoC: qcom: Use snd_soc_substream_to_rtd() for accessing private_data 2024-05-06 23:59:47 +09:00
sc7280.c ASoC: qcom: Use snd_soc_substream_to_rtd() for accessing private_data 2024-05-06 23:59:47 +09:00
sc8280xp.c ASoC: qcom: sc8280xp: add Display port Jack 2024-06-18 14:20:10 +01:00
sdm845.c ASoC: qcom: Fix trivial code style issues 2023-12-18 14:04:25 +00:00
sdw.c ASoC: qcom: add missing MODULE_DESCRIPTION() macro 2024-06-04 12:57:44 +01:00
sdw.h ASoC: qcom: Add helper for allocating Soundwire stream runtime 2023-11-29 18:53:24 +00:00
sm8250.c ASoC: qcom: Use snd_soc_substream_to_rtd() for accessing private_data 2024-05-06 23:59:47 +09:00
storm.c ASoC: qcom: Fix trivial code style issues 2023-12-18 14:04:25 +00:00
x1e80100.c ASoC: qcom: x1e80100: Add USB DisplayPort plug support 2024-06-18 14:20:11 +01:00