linux_dsm_epyc7002/sound/soc/qcom
Bjorn Andersson 16395ceee1
ASoC: qcom: common: Fix NULL pointer in of parser
A snd_soc_dai_link_component is allocated and associated with the first
link, so when the code tries to assign the of_node of the second link's
"cpu" member it dereferences a NULL pointer.

Fix this by moving the allocation and assignement of
snd_soc_dai_link_components into the loop, giving us one pair per link.

Fixes: 1e36ea360a ("ASoC: qcom: common: use modern dai_link style")
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Acked-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
2019-06-19 12:04:24 +01:00
..
qdsp6 ASoC: qdsp6: q6core: Use struct_size() in kmemdup() 2019-05-24 13:01:57 +01:00
apq8016_sbc.c ASoC: qcom: apq8016_sbc: use modern dai_link style 2019-06-06 21:45:50 +01:00
apq8096.c ASoC: apq8096: add slim support 2019-01-28 18:19:10 +00:00
common.c ASoC: qcom: common: Fix NULL pointer in of parser 2019-06-19 12:04:24 +01:00
common.h ASoC: qcom: remove unused header files from common.h 2018-08-06 12:50:07 +01:00
Kconfig ASoC: qcom: add i2c dependency for SND_SOC_SDM845 2019-03-11 16:31:49 +00:00
lpass-apq8016.c ASoC: qcom: move clock names into LPASS variant struct 2017-04-21 18:07:45 +01:00
lpass-cpu.c ASoC: qcom: move clock names into LPASS variant struct 2017-04-21 18:07:45 +01:00
lpass-ipq806x.c ASoC: qcom: move clock names into LPASS variant struct 2017-04-21 18:07:45 +01:00
lpass-lpaif-reg.h ASoC: qcom: add generic bit masks for RDMA and WRDMA 2016-02-20 01:20:18 +09:00
lpass-platform.c ASoC: qcom: clean up indentation, remove extraneous tab 2018-11-16 19:08:32 -08:00
lpass.h ASoC: qcom: move clock names into LPASS variant struct 2017-04-21 18:07:45 +01:00
Makefile ASoC: qcom: make common.c as proper module 2018-08-06 12:50:04 +01:00
sdm845.c ASoC: sdm845: Set DAI format for dmic codec 2019-01-16 16:33:02 +00:00
storm.c ASoC: qcom: storm: use modern dai_link style 2019-06-06 21:45:21 +01:00