linux-stable/sound/soc/qcom
Colin Ian King 1382d8b551
ASoC: qcom: Fix uninitialized pointer dmactl
In the case where __lpass_get_dmactl_handle is called and the driver
id dai_id is invalid the pointer dmactl is not being assigned a value,
and dmactl contains a garbage value since it has not been initialized
and so the null check may not work. Fix this to initialize dmactl to
NULL. One could argue that modern compilers will set this to zero, but
it is useful to keep this initialized as per the same way in functions
__lpass_platform_codec_intf_init and lpass_cdc_dma_daiops_hw_params.

Cleans up clang scan build warning:
sound/soc/qcom/lpass-cdc-dma.c:275:7: warning: Branch condition
evaluates to a garbage value [core.uninitialized.Branch]

Fixes: b81af585ea ("ASoC: qcom: Add lpass CPU driver for codec dma control")
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link: https://msgid.link/r/20240221134804.3475989-1-colin.i.king@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2024-02-21 14:01:17 +00:00
..
qdsp6 ASoC: q6dsp: fix event handler prototype 2024-02-13 13:28:43 +00:00
apq8016_sbc.c ASoC: qcom: Fix trivial code style issues 2023-12-18 14:04:25 +00:00
apq8096.c ASoC: qcom: Fix trivial code style issues 2023-12-18 14:04:25 +00:00
common.c ASoC: qcom: Fix trivial code style issues 2023-12-18 14:04:25 +00:00
common.h ASoC: qcom: Fix building APQ8016 machine driver without SOUNDWIRE 2023-01-09 13:04:14 +00: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: Fix trivial code style issues 2023-12-18 14:04:25 +00: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: Add x1e80100 sound machine driver 2023-12-18 14:04:22 +00:00
sc7180.c GPIO inclusion fixes to misc sound drivers 2023-12-19 16:45:42 +00:00
sc7280.c ASoC: DT matching and header cleanups 2023-10-09 23:14:18 +01:00
sc8280xp.c ASoC: qcom: sc8280xp: limit speaker volumes 2024-01-22 19:38:10 +00:00
sdm845.c ASoC: qcom: Fix trivial code style issues 2023-12-18 14:04:25 +00:00
sdw.c ASoC: qcom: Fix trivial code style issues 2023-12-18 14:04:25 +00:00
sdw.h ASoC: qcom: Add helper for allocating Soundwire stream runtime 2023-11-29 18:53:24 +00:00
sm8250.c ASoC: qcom: Fix trivial code style issues 2023-12-18 14:04:25 +00:00
storm.c ASoC: qcom: Fix trivial code style issues 2023-12-18 14:04:25 +00:00
x1e80100.c ASoC: qcom: Add x1e80100 sound machine driver 2023-12-18 14:04:22 +00:00