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=1795019837; b=FcKybQL1MDYbpgz+9m+isuuKyzKhwOWYm2B5d5Tm/QasDHveOctG7o1j9L1W8tMUwF5P ZghDQbp3kyOwl96T05zUz/e6dh1PMOROgVTiWDPJ3RbbLSBgGoyHRLXmi6krGYGXH2SCh 1XEc3wkHvqfF7ajLNh9lBzYtCJJoD2qXUgBsm3uHcte2LiIvOb5N/c4efFL0fBAqg/nAX HG7kfTnRdPmumO89WvDQlG4gzQfLNNADMKCyePobzArOoXw573EojaO7G5rT5Z5WHZYiu f6Mw5xBPEDMpoeivCk48AV3ATEO+FbEBPaXZDTYEwUHzCxNGER5S03z7vOs6XluBsTA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795019837; 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=gB1qBf5SqkpYSwec0Kfi8AjgP4ygL6U7IOpxiCofta4=; b=vtra3JVehdvPrtm1B0rZZmVRzw7qJ7H4E6UezW4fZazVR3JvOQN9Ii51ck/e42Tq1smr LI13lvbba9BagZeJuduuqE11tUiDyOXD0gV17S1pFD8y5+AzfFQCRBYsL4+5WG1ztGHlr JIDiUKzB+oGjXXMsyasv/uJNY7PpYqpaxqcY28smsJOhwxFaud0AKdmQd2Hdt3amtQMCO y0qhBZTsoIBf2CJNpBzOFJtliYvfUQcGOhx9LbCxgAEW31OL01MzEDp20gBwjZCUdsLVI SBzMEcJjU8UIVaB8ah2JQPJ0jEeQSfD/RYvuSAuwatwaMCK82g3RRjUfzbilJKufOAQ== 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=RtQKuBED; 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 EBECA606A33F; Wed, 18 Nov 2026 16:37:16 +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=RtQKuBED Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4F9C41F000CA; Wed, 18 Nov 2026 16:37:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795019836; bh=gB1qBf5SqkpYSwec0Kfi8AjgP4ygL6U7IOpxiCofta4=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=RtQKuBEDzU6M+Dlke3NZYf23036HQGhvdhVX35eVOBTJDiYpXRegsG1BOf0iRZB1n 0V7tSo0o2a3KpHJwC76yqfFXmFVYF6PLt3MxotgMxhveBI6HqdRDyIUZHpY2nN2PwV nB6TAJQLjxCpyaswA5EIbLQy9zP/CcIqMDSi4lfg= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Yuho Choi , Arnd Bergmann , Sasha Levin Subject: [PATCH 7.3 1737/2651] bus: arm-cci: Drop CPU node reference in cci_ace_init_ports() Date: Wed, 18 Nov 2026 15:49:37 +0100 Message-ID: <20261118150350.119317046@linuxfoundation.org> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261118150247.972732815@linuxfoundation.org> References: <20261118150247.972732815@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 7.3-stable review patch. If anyone has any objections, please let me know. ------------------ From: Yuho Choi [ Upstream commit 41d6c0fcd4d75bf78c304c6660d60fcf757885ce ] cci_ace_init_ports() looks up each possible CPU's node with of_get_cpu_node(), which returns the node with its reference count raised, but never releases it: neither when the CPU has no ACE port nor after the port has been recorded. Before the commit below the loop used for_each_child_of_node(), which manages the references itself. The node is only needed for the port lookup, so drop the reference right after __cci_ace_get_port(). Fixes: 78b4d6e0fd26 ("drivers/bus: arm-cci: avoid parsing DT for cpu device nodes") Signed-off-by: Yuho Choi Link: https://lore.kernel.org/r/20260923163536.596107-1-oss.patchbox@gmail.com Signed-off-by: Arnd Bergmann Signed-off-by: Sasha Levin --- drivers/bus/arm-cci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/bus/arm-cci.c b/drivers/bus/arm-cci.c index 7f2baf0571286..076ac8e06bd01 100644 --- a/drivers/bus/arm-cci.c +++ b/drivers/bus/arm-cci.c @@ -199,6 +199,7 @@ static void cci_ace_init_ports(void) continue; port = __cci_ace_get_port(cpun, ACE_PORT); + of_node_put(cpun); if (port < 0) continue; -- 2.53.0