OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea94191
)
ASoC: qcom: lpass-cpu: Fix lpass dai ids parse
author
Srinivasa Rao Mandadapu
<srivasam@codeaurora.org>
Thu, 11 Mar 2021 15:45:57 +0000
(21:15 +0530)
committer
Mark Brown
<broonie@kernel.org>
Thu, 11 Mar 2021 16:21:11 +0000
(16:21 +0000)
The max boundary check while parsing dai ids makes
sound card registration fail after common up dai ids.
Fixes:
cd3484f7f138
("ASoC: qcom: Fix broken support to MI2S TERTIARY and QUATERNARY")
Signed-off-by: Srinivasa Rao Mandadapu <srivasam@codeaurora.org>
Link:
https://lore.kernel.org/r/20210311154557.24978-1-srivasam@codeaurora.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/qcom/lpass-cpu.c
patch
|
blob
|
history
diff --git
a/sound/soc/qcom/lpass-cpu.c
b/sound/soc/qcom/lpass-cpu.c
index
c642e5f
..
be360a4
100644
(file)
--- a/
sound/soc/qcom/lpass-cpu.c
+++ b/
sound/soc/qcom/lpass-cpu.c
@@
-739,7
+739,7
@@
static void of_lpass_cpu_parse_dai_data(struct device *dev,
for_each_child_of_node(dev->of_node, node) {
ret = of_property_read_u32(node, "reg", &id);
- if (ret || id < 0
|| id >= data->variant->num_dai
) {
+ if (ret || id < 0) {
dev_err(dev, "valid dai id not found: %d\n", ret);
continue;
}