diff options
author | Bjorn Andersson <bjorn.andersson@linaro.org> | 2019-06-18 08:28:13 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-06-19 14:04:24 +0300 |
commit | 16395ceee11f8f8af764bac76adc20a43ba1a153 (patch) | |
tree | f0b0ff2ec3d4a8e9a1e3965d5fd12e5564356dcd /sound/soc/codecs/rt5677.h | |
parent | e711223ad35b326a597ebd3a6acc8276fd38e25c (diff) | |
download | linux-16395ceee11f8f8af764bac76adc20a43ba1a153.tar.xz |
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: 1e36ea360ab9 ("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>
Diffstat (limited to 'sound/soc/codecs/rt5677.h')
0 files changed, 0 insertions, 0 deletions