linux-sg2042/sound/soc/qcom
Stephan Gerhold 7004100045
ASoC: qcom: lpass: Fix out-of-bounds DAI ID lookup
The "dai_id" given into LPAIF_INTFDMA_REG(...) is already the real
DAI ID, not an index into v->dai_driver. Looking it up again seems
entirely redundant.

For IPQ806x (and SC7180 since commit 09a4f6f5d2
("ASoC: dt-bindings: lpass: Fix and common up lpass dai ids") this is
now often an out-of-bounds read because the indexes in the "dai_driver"
array no longer match the actual DAI ID.

Cc: Srinivasa Rao Mandadapu <srivasam@codeaurora.org>
Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Fixes: 7cb37b7bd0 ("ASoC: qcom: Add support for lpass hdmi driver")
Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20210125104442.135899-1-stephan@gerhold.net
Signed-off-by: Mark Brown <broonie@kernel.org>
2021-01-25 12:53:45 +00:00
..
qdsp6 Merge remote-tracking branch 'asoc/for-5.11' into asoc-next 2020-12-11 17:48:04 +00:00
Kconfig ASoC: qcom: fix QDSP6 dependencies, attempt #3 2020-12-04 23:26:37 +00:00
Makefile ASoC: qcom: sc7180: Add machine driver for sound card registration 2020-10-27 14:05:46 +00:00
apq8016_sbc.c ASoC: qcom: mark OF related data as maybe unused 2020-11-26 13:07:06 +00:00
apq8096.c ASoC: qcom: Set card->owner to avoid warnings 2020-08-21 16:12:10 +01:00
common.c ASoC: qcom: common: Fix refcounting in qcom_snd_parse_of() 2020-11-10 17:28:25 +00:00
common.h ASoC: qcom: remove unused header files from common.h 2018-08-06 12:50:07 +01:00
lpass-apq8016.c ASoC: qcom: mark OF related data as maybe unused 2020-11-26 13:07:06 +00:00
lpass-cpu.c ASoC: qcom: Fix broken support to MI2S TERTIARY and QUATERNARY 2021-01-20 16:46:45 +00:00
lpass-hdmi.c ASoC: qcom: fix unsigned int bitwidth compared to less than zero 2020-10-28 21:33:22 +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: lpass: Fix out-of-bounds DAI ID lookup 2021-01-25 12:53:45 +00:00
lpass-platform.c ASoC: qcom: Fix broken support to MI2S TERTIARY and QUATERNARY 2021-01-20 16:46:45 +00:00
lpass-sc7180.c ASoC: qcom: Fix number of HDMI RDMA channels on sc7180 2021-01-21 12:35:41 +00:00
lpass.h ASoC: qcom: Fix broken support to MI2S TERTIARY and QUATERNARY 2021-01-20 16:46:45 +00:00
sc7180.c ASoC: qcom: sc7180: fix 32 bit format for adau7002 2020-11-27 14:50:17 +00:00
sdm845.c ASoC: qcom: sdm845: set driver name correctly 2020-10-23 18:28:50 +01:00
sm8250.c ASoC: qcom: sm8250: fix HDMI audio playback 2020-11-20 16:08:38 +00:00
storm.c ASoC: qcom: Set card->owner to avoid warnings 2020-08-21 16:12:10 +01:00