From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796387534; b=H6INNsBxNdRNhBJXNT0SdAsXoTXxZxHyc60lzP2oXzTQ2y9kc89n/mfy1PdbfdCZe8Dd P8KlAhup8MB6WlXBOr8dPF4UOkxUHtCxjllbLXL6qqL/65g5PdbZ/VCUpWO9yiGcEz08t rmLFTEdxvHIWkjBUlpweh0K2EzvY6kmwYxrLFiytt7a3hlg4XhC/+bSnHNkYfjMYmHA5a rqot1dD8N6hWIY0Oc4lBzloKTorCxLpa5WkFVG9r/JaEJDM2SoYwGZfvZTWJ3eLRC+82w r5EZ6/HF6AvipHQ5iZTWeUtbyrXoojeVtw4P20sjSrEMtdW9eW+3iFFrJZnoRJFEldQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796387534; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=17+KPrLC4yk2vodvKvrFh/dhxlm9d4455DfP3cnBlQM=; b=DFe5L+fWfcSVFKlSpwDVz60Wg4fhJKIagw/fXIBk6pUlzUo77NdDDaoNmMV4hZomDjTE NCAc0MJttWcvaMqwXixKpnDDzr92YfrOUBwdK8NEkOfKjRS6C8VLXy+EPUXdKXbU5o4lU 7GzS3hPCpuYyW+HuM4/YpD/7MJat91Uo3YXqeFWad7+7t8IV1u5cF6LRDhZ2vpw6seV7t y/Z+Kaz7qX1vwvD6c8i3rBAsjOjbc0Mcjf/oVjunbnvcW6ZAM17SXcGgyUIq+LighMzTX oCQkjl1DSRoSxowXn7G0Och+G86o8UUeJ322rQBE+lVvdvrElUWfzPLM5rNqLylYYKg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=WYSTTtUL; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 78E1A606A322; Fri, 4 Dec 2026 12:32:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=WYSTTtUL Received: by smtp.kernel.org (Postfix) with ESMTPSA id E7DA01F000C2; Fri, 4 Dec 2026 12:32:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796387534; bh=17+KPrLC4yk2vodvKvrFh/dhxlm9d4455DfP3cnBlQM=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=WYSTTtULjVslfB/+nEw5nOhfkGE3zKk9Iv2Yr0J3o4PbFMJBS5BC/Yk4i0P4DTug5 83+YGPYvH5IJjKpRiAWaA0lxAj3a3WOpSdQ46cPxvPpticsF98jTYd5Lu0/pG3aAVl wK5OmgXteH6tOk0Dfe7NtkjSVT0O5zNRwV+pb2W4= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Konrad Dybcio , Dmitry Baryshkov , Abel Vesa , Georgi Djakov , Sasha Levin Subject: [PATCH 6.1 0286/1059] interconnect: qcom: icc-rpm: Handle icc_link_create() failures Date: Fri, 4 Dec 2026 18:56:57 +0900 Message-ID: <20261204100651.679371318@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100643.980430235@linuxfoundation.org> References: <20261204100643.980430235@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Konrad Dybcio [ Upstream commit b2079a6b8e8b92c6c45a22930e5b68a9c5c34645 ] icc_link_create() can return errors. Don't ignore them. Assisted-by: LLM Fixes: 30c8fa3ec61a ("interconnect: qcom: Add MSM8916 interconnect provider driver") Signed-off-by: Konrad Dybcio Reviewed-by: Dmitry Baryshkov Reviewed-by: Abel Vesa Link: https://patch.msgid.link/20260909-topic-icc_rpm_smd_qol-v1-3-6dc5b5e97626@oss.qualcomm.com Signed-off-by: Georgi Djakov [ sashal: Replaced upstream's open-coded cleanup (including interface-clock disable) with a goto to the existing err_remove_nodes label, since this tree has no intf_clks support. ] Signed-off-by: Sasha Levin --- drivers/interconnect/qcom/icc-rpm.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/interconnect/qcom/icc-rpm.c b/drivers/interconnect/qcom/icc-rpm.c index 9047481fafd48..3418ac2e28de8 100644 --- a/drivers/interconnect/qcom/icc-rpm.c +++ b/drivers/interconnect/qcom/icc-rpm.c @@ -521,8 +521,11 @@ int qnoc_probe(struct platform_device *pdev) node->data = qnodes[i]; icc_node_add(node, provider); - for (j = 0; j < qnodes[i]->num_links; j++) - icc_link_create(node, qnodes[i]->links[j]); + for (j = 0; j < qnodes[i]->num_links; j++) { + ret = icc_link_create(node, qnodes[i]->links[j]); + if (ret) + goto err_remove_nodes; + } data->nodes[i] = node; } -- 2.53.0