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=1796379949; b=B/Y5hHmgBPYySbR09vfvBGxnnHj43RVM/d6k0zP1zUxOGhs1kbTNpjd/pmxUFMTYXm0W LU9h3TSAz2cwxn55lJaMEhWs9Csj0Nq6h0hEG9TXhcFdqFgLixCU1RTbuqd2vmxU9jp3t JcId1AEVkIXMtLu9QNhpp7zJkLlIjykamGlZ28WNHotrZf1oim1dUfeYve4pEuZwptOzf II0htXt+zT1BVce9aFnWGObRnuk7uOf0n2aW3rRNm3O8PUe5U2t8SSUh5GSzXxjAbZN6k /GD202hYrGnHXfJL6q67RvxNkLwOykOLvntkvfmg6bcAujCTvyHw/oN8rbv5hkjtpng== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796379949; 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=BDu0Vw3vs8mgS6uoQ0QY+T06tHDPYtEaCzOctERaECU=; b=1PUsHyVHIgoj9lMkFlM0Tnk8e1aAMJHsTf1GbHoDDKl7WVwnLMEZh6wk4OnDZ/SnzG5E jHJra84tVSwfe4B0PuX5n/xjoaAlVox0N2D+Jdb8o3xlRfR2IwE4PHdYUclp+H4qnzhwr 9ak3JA56JbYagZL4pxSzyX3GKUGCmriG9LuaiW9u/rt41L9g3dGQ4piklVgzH9QJrlOPR +3zgxFgeYcuMxBStH7PYWJJSeUFfrAkMaMr8vnx+cIv6e4cFKxtVnB3zTt0eqvoOEwx04 Cm2McNlOG4vsvy8JhM6pXIYGRpkMsdC5GMAv+igL8BT+/uIV5rLsCVR46yA6CMQgp5g== 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=aiY9OyzC; 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 9B83F606A322; Fri, 4 Dec 2026 10:25:49 +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=aiY9OyzC Received: by smtp.kernel.org (Postfix) with ESMTPSA id C8E701F000C2; Fri, 4 Dec 2026 10:25:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796379949; bh=BDu0Vw3vs8mgS6uoQ0QY+T06tHDPYtEaCzOctERaECU=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=aiY9OyzC4OAM+HKZkEwIjCbS8noYG7ODnS1l4o2rzuP1zulL/04VDmbl1zh0iqO55 1a0razX6H2zOYI270V3VvCt9Z3+tTL6wDDUqYtVwjCfypaG50wC//b8A81dF5X+kmO FVzXreHj3aRizgEAaOTqSUTtPmEi42nrzA67aQTE= 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 7.3 064/742] memory: tegra: fix device_node leak in tegra186_mc_probe_device() Date: Fri, 4 Dec 2026 18:58:48 +0900 Message-ID: <20261204100636.781691364@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100635.034361255@linuxfoundation.org> References: <20261204100635.034361255@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 7.3-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 442edb2b033e2..0df5b56586e89 100644 --- a/drivers/memory/tegra/tegra186.c +++ b/drivers/memory/tegra/tegra186.c @@ -146,6 +146,7 @@ static int tegra186_mc_probe_device(struct tegra_mc *mc, struct device *dev) } } + of_node_put(args.np); index++; } #endif -- 2.53.0