Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp163674pxf; Thu, 11 Mar 2021 00:20:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJwngQ1MzUsxLIbwq4Ri2AxO8iDt4lDfQSRISvsWAX3AtySP32AElqYRsY/lSqc3GOiJ42i+ X-Received: by 2002:aa7:c3c4:: with SMTP id l4mr7159528edr.335.1615450822243; Thu, 11 Mar 2021 00:20:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615450822; cv=none; d=google.com; s=arc-20160816; b=Z2+dXs5mJG1N3FUwNofsxRDbAHjApFBATSJzuZtIDl1edu4HwG3JJM/i9yrUXFYUJk kiwEFc3BSd6D9cG1m9stQRyPTJAumRlyL7PjKyUwJ0IAW/+J+/oelMrqk51tLlMIM/2b /Dm3eit1FKrIhJjUt8zS/X2YHHx6VHk5zOL0+LgGkRj/38aa7xALTbi8gauW7oUCaSOl 5wu8e/hrOL2OqDphlF6lr4foxyUJTyBha9X6+vjCNzuF4Ad7m/pYUyraOgnUGhuXTGE2 A6J7zt6yU03XIX0U9A1Ocs72q9idXcMrJwbPaEOYAGgud1lZdJ/M/p/pZ4U/RRstJVIh 40Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dmarc-filter:sender :dkim-signature; bh=ZBXnKQ2z5F+w5AO3Zn+MXqGx/PcyC6YiGN2avgOMwvk=; b=AZJ8pZiZ0LueRWmsx56BkCOt+cKJh//T2PtBfh8gBacCta3X1k50kY3wBbE0qEtfJZ ePnGUlua+OG4W01VYCn/7jD9NjrKtKEchUubJF4RHPo0e8MhT/J1Re4iY6Z7ycC8KOFF SCdcrYvdpZy318zeyqiFQOI6c+ZhR12W3j5RHAarB7U0ceU/MKCQPHR+niy/XZI/Gqt1 JJk67Q7tyrhiZx7VPRncp6I/nRRkGII6dlO9jKmVJ3B2OsL7Tlxr2C5wmfj74V1KQVM8 9NGml9txxEX/rdV9S/reuTSJHhe8Twfgwm2JtxlsSPrrLgDSCHVCDdBt17cKIT+28lX6 +F1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=H2GKwcmO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a22si1272182ejp.696.2021.03.11.00.19.59; Thu, 11 Mar 2021 00:20:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=H2GKwcmO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230009AbhCKISr (ORCPT + 99 others); Thu, 11 Mar 2021 03:18:47 -0500 Received: from z11.mailgun.us ([104.130.96.11]:37261 "EHLO z11.mailgun.us" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231335AbhCKISh (ORCPT ); Thu, 11 Mar 2021 03:18:37 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1615450717; h=Content-Transfer-Encoding: MIME-Version: Message-Id: Date: Subject: Cc: To: From: Sender; bh=ZBXnKQ2z5F+w5AO3Zn+MXqGx/PcyC6YiGN2avgOMwvk=; b=H2GKwcmO/czBJ5qv8UmWSvYDqoEiN6Yph3IsQtho9vNbuWkhL7PNaZwtde6KcDXTxer2QW6Z fmStBaFKgGf4HjxaF/2jQFP6Qc/gCzppqxRWrpFWtFOaplk5NXAGu3WxKcOOFFiMCTQ1IHtd xhYoXuBpm77/J3utoAo4ra8wUvI= X-Mailgun-Sending-Ip: 104.130.96.11 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n03.prod.us-west-2.postgun.com with SMTP id 6049d24f0c7cf0f56c6ec0ce (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 11 Mar 2021 08:18:23 GMT Sender: srivasam=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 575B5C43467; Thu, 11 Mar 2021 08:18:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL autolearn=no autolearn_force=no version=3.4.0 Received: from hyd-lnxbld210.qualcomm.com (unknown [202.46.22.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: srivasam) by smtp.codeaurora.org (Postfix) with ESMTPSA id 6724FC43461; Thu, 11 Mar 2021 08:18:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 6724FC43461 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=srivasam@codeaurora.org From: Srinivasa Rao Mandadapu To: agross@kernel.org, bjorn.andersson@linaro.org, lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, plai@codeaurora.org, bgoswami@codeaurora.org, perex@perex.cz, tiwai@suse.com, srinivas.kandagatla@linaro.org, rohitkr@codeaurora.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, swboyd@chromium.org, judyhsiao@chromium.org Cc: Srinivasa Rao Mandadapu Subject: [PATCH] ASoC: qcom: lpass-cpu: Fix lpass dai ids parse Date: Thu, 11 Mar 2021 13:48:05 +0530 Message-Id: <20210311081805.20424-1-srivasam@codeaurora.org> X-Mailer: git-send-email 2.29.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The max boundary check while parsing dai ids makes sound card registration fail after common up dai ids. Fixes: cd3484f7f1386 (ASoC: dt-bindings: lpass: Fix and common up lpass dai ids) Signed-off-by: Srinivasa Rao Mandadapu --- sound/soc/qcom/lpass-cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/qcom/lpass-cpu.c b/sound/soc/qcom/lpass-cpu.c index 4762286b33fe..c62d2612e8f5 100644 --- 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; } -- Qualcomm India Private Limited, on behalf of Qualcomm Innovation Center, Inc., is a member of Code Aurora Forum, a Linux Foundation Collaborative Project.