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=1796383263; b=YxL1pk8yCapQN+Ytrh0HAos0EAJz73qyQzxWpR8dGMchm7pchnhlz4A7fGEwwgD0a56t b0c1qODKwVJ3hD7zfn2vKruUejVE6FI3MJOwl2Y3ga2RvSpsPa+TEozjKQdW6t7r3pj2V HX7d8AkV5iD0U9jI5fGq2Xb8wx4VkomSZ9l9/eiiz/KBAitLaJIdBYV/9El/rj5u4AQ3+ qbm5g31gDvRQjrB8Th7CmxgIPl75W93sCer0XsIxKIT7N6eFUw2EfSaxotGNGFG2p5K/U XpxNEFbM8SXvcb6oLAhEIpnqR7SvP2Rj026F61279caCgud7VpTkHmCy3tffqvwbKyg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796383263; 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=IUwjuXPpIgIIesdod+OGLHWGVk1vVTNjOHcwa6pv9ds=; b=R90CAxym2+GUEcRR2EsdWYeWzoU5UhjnH1p0lfWRMDNLMZFGooxnQVxhkA0roc8wnjJh zMYiGLG47whEsrghEDwO/Lw1Z4RjrMbs70ScwiaRScl1HaGLe32UOnv65UGd+FELma+HP KExg4wNSK1hXMZGYn6boa3cs0hgr2kDJgZGE69wR4zXBmAPchZjV4232YOe/ecGmDxCFp /cns6nSmcx3kwFKLpL/1wQuhTCPs8Wffye2WSmHM8YMjWaemD4E6AnysZiw3KlGgspWuG ByIy3uDYYCIKc4leyOdp7Avz5TtLptp8yIguFlUSa3yjgr3gcp5GWuMD//CZKNoelpw== 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=PMw107sA; 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 1F34E606A689; Fri, 4 Dec 2026 11:21:03 +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=PMw107sA Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8E41D1F00931; Fri, 4 Dec 2026 11:21:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796383263; bh=IUwjuXPpIgIIesdod+OGLHWGVk1vVTNjOHcwa6pv9ds=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=PMw107sAyJ0JJeRYTnBTn1ZclOtPkynG3QqnZykMVYpaMLtFiSUS6lF1UUhJrtepv ToeBNvn9MiCZr4pwuBVj8XrVxkxnv6MsjlfiZ0W1Or0BVKNOlKVsG7kzxhfHW9K6jp FhvEAJIXExJsOcbfHBgpKpJR40234wQWqqbC6L9Q= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Selby Mashiki , Krzysztof Kozlowski , Sasha Levin Subject: [PATCH 6.12 152/555] memory: tegra: fix device_node leak in tegra186_mc_probe_device() Date: Fri, 4 Dec 2026 19:03:15 +0900 Message-ID: <20261204100614.052979845@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100603.988357525@linuxfoundation.org> References: <20261204100603.988357525@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Selby Mashiki [ Upstream commit 21250426a8469d3bc43c2f0c69ed5497ee9ff7d4 ] tegra186_mc_probe_device() iterates over the "interconnects" phandles using of_parse_phandle_with_args(), which increments the reference count of args.np on each successful call, but never drops the reference with of_node_put(args.np). Call of_node_put(args.np) at the end of each loop iteration. Fixes: fe3b082a6eb8 ("memory: tegra: Add SID override programming for MC clients") Signed-off-by: Selby Mashiki Link: https://patch.msgid.link/20261025190322.449324-1-mashikiselby@gmail.com Signed-off-by: Krzysztof Kozlowski Signed-off-by: Sasha Levin --- drivers/memory/tegra/tegra186.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/memory/tegra/tegra186.c b/drivers/memory/tegra/tegra186.c index 1b3183951bfe5..07fad3a9ec2f3 100644 --- a/drivers/memory/tegra/tegra186.c +++ b/drivers/memory/tegra/tegra186.c @@ -134,6 +134,7 @@ static int tegra186_mc_probe_device(struct tegra_mc *mc, struct device *dev) } } + of_node_put(args.np); index++; } #endif -- 2.53.0