From nobody Wed Dec 17 18:01:32 2025 Received: from ci74p00im-qukt09082501.me.com (ci74p00im-qukt09082501.me.com [17.57.156.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4A899233134 for ; Mon, 9 Dec 2024 13:25:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=17.57.156.14 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733750757; cv=none; b=mssaIpq0B77uQWaTHGafEzIi+5DQ+CO6JNKnlvRMykGKCLgO6Sj5ByDbcmi4cyE+wfJvs0Hm8NdLvAi1XgL4eYmC0IEHhzcupW3g6eNsmYYNNabS3tvJq2aKsA7au2FZAzsJdpAI6lIvdpXZr2ruLeI2EvUHsAdXCK3shewRmxQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733750757; c=relaxed/simple; bh=H/i8KSikZ2sUIrUiS2Ekgr/swUIcXlVMiuTTZ8cXyDk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=BxKvHDGhUbjH6WfG7SDwoVpB1YGVN80QbpuN7ZInyCjWKkhdyWrKPDgVQhNuIFrfbexH0oFvcYh3jTq5CfhQKBbKggRAATKXCDPTEqz/au4PwNODnyXnMBCOctzPr1Zum3WFtZljGTfG11uP6WwTrO1KsNbT+Bb9nMptCo1jVPg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=icloud.com; spf=pass smtp.mailfrom=icloud.com; dkim=pass (2048-bit key) header.d=icloud.com header.i=@icloud.com header.b=SKnXtTZM; arc=none smtp.client-ip=17.57.156.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=icloud.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=icloud.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=icloud.com header.i=@icloud.com header.b="SKnXtTZM" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1733750755; bh=i3Jdan8uZVn7UNPErfqRxyIjXKkKSwc1fhtcBHUOdM8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To: x-icloud-hme; b=SKnXtTZMhGx41kZA1vddt+ARNRi4myt8jn/Ncn07jvUYQVVIa73VN1MRpsn/TLlSk /8A9WQnZ5WjUAzd6VGiZkV9pJY0HUZrvnkmyRF76IFOdNjuWuo49vwLOM5AtZL7Kp8 tEW2UDvo/ezp8EUgLv+K1eoiyLv+3D0lcPibqIU7A1iPDbNSnfpBm9Ux3ha/2ksRhd mUYXxqQfAp0QLKg/oT/ZDldqCNh2sXsaneiI0CqcYf5XuP3o9HJtVTu9rL5nJdXnro NOCp9ba3HQEYwUSU8UPcODtWVxCR8FwhdbPFAmJ/4UuKpAlP7ARf5bUZobojIeJs9p ohyMVIb3l2f8Q== Received: from [192.168.1.26] (ci77p00im-dlb-asmtp-mailmevip.me.com [17.57.156.26]) by ci74p00im-qukt09082501.me.com (Postfix) with ESMTPSA id 75A7F4AA03B1; Mon, 9 Dec 2024 13:25:33 +0000 (UTC) From: Zijun Hu Date: Mon, 09 Dec 2024 21:24:59 +0800 Subject: [PATCH 1/8] of/irq: Fix wrong value of variable @len in of_irq_parse_imap_parent() Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20241209-of_irq_fix-v1-1-782f1419c8a1@quicinc.com> References: <20241209-of_irq_fix-v1-0-782f1419c8a1@quicinc.com> In-Reply-To: <20241209-of_irq_fix-v1-0-782f1419c8a1@quicinc.com> To: Rob Herring , Saravana Kannan , Lorenzo Pieralisi , Bjorn Helgaas , Marc Zyngier , Stefan Wiehler , Grant Likely , Tony Lindgren , Kumar Gala , Thierry Reding , Julia Lawall , Jamie Iles , Grant Likely , Benjamin Herrenschmidt Cc: Zijun Hu , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , Zijun Hu , stable@vger.kernel.org X-Mailer: b4 0.14.2 X-Apple-Remote-Links: v=1;h=KCk=;charset=UTF-8 From: Zijun Hu Fix wrong @len value by 'len--' after 'imap++' in of_irq_parse_imap_parent(). Fixes: 935df1bd40d4 ("of/irq: Factor out parsing of interrupt-map parent ph= andle+args from of_irq_parse_raw()") Cc: stable@vger.kernel.org Signed-off-by: Zijun Hu --- drivers/of/irq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/of/irq.c b/drivers/of/irq.c index 67fc0ceaa5f51c18c14f96f2bb9f82bcb66f890e..43cf60479b9e18eb0eec35f39c1= 47deccd8fe8dd 100644 --- a/drivers/of/irq.c +++ b/drivers/of/irq.c @@ -111,6 +111,7 @@ const __be32 *of_irq_parse_imap_parent(const __be32 *im= ap, int len, struct of_ph else np =3D of_find_node_by_phandle(be32_to_cpup(imap)); imap++; + len--; =20 /* Check if not found */ if (!np) { --=20 2.34.1