mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 02:21:52 +09:00
ASoC: qcom: lpass-cpu: Fix lpass dai ids parse
commit9922f50f71upstream. The max boundary check while parsing dai ids makes sound card registration fail after common up dai ids. Fixes:cd3484f7f1("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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
1ae54de79f
commit
d1ab87e317
@@ -737,7 +737,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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user