From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D6C2B1D0DD1; Wed, 2 Oct 2024 14:11:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727878273; cv=none; b=DYRu/Ed6FOxpjeO22GTOlHNaEng8CEd0buGy/ZntvwBg4PyJO3AHeoh8UsE0GKE50xP1pXk1OQg3tOyg43GttuksBf2LZZvXdGJ62MdjlM8kR+LZwKIEJhPGuIggvlKMMEyJ4mAQzrmsZ2CplcfR9au0IRKDh1BTCQIYgxmxuDM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727878273; c=relaxed/simple; bh=9xtjtVXAlhPHG1XNoVuFZAnyi+zrOdglIB5BGEeoEtg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=I/Gs4NuG0TjA/UMT49L7PUmAFj9uIsgnQxglXucXDjusHvmE8z79HowPmRbVFWm+sZgyTXQvDjAYGtKrQAvYtLjes1AndXDYU9I9wFdhfFC5NjxT1ZvkdpbUip3xzZk2NwPOU9EpFva/pP6JOCii2+cxhotLiNy5go7nSOtK3aA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=S39A0W7t; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="S39A0W7t" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 21DBBC4CEC2; Wed, 2 Oct 2024 14:11:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1727878273; bh=9xtjtVXAlhPHG1XNoVuFZAnyi+zrOdglIB5BGEeoEtg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=S39A0W7tZctTCE+MyCi1NoTkK/+XwAVkx56pbUK5gzXafgSdPAiFMZwU4a2S7W4IS UMqZnw9IKc4u89ec9oAvvWHQUe4Sy/yP/NngsvZWf4Ua2dFVrNbQgPR4s1GRpzCOGB WRvbW9sNr0V339tzTjYjFFiiH64pjr9VRECCcuRM= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, David Lechner , Stephen Boyd , Sasha Levin Subject: [PATCH 6.10 357/634] clk: ti: dra7-atl: Fix leak of of_nodes Date: Wed, 2 Oct 2024 14:57:37 +0200 Message-ID: <20241002125825.187693943@linuxfoundation.org> X-Mailer: git-send-email 2.46.2 In-Reply-To: <20241002125811.070689334@linuxfoundation.org> References: <20241002125811.070689334@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.10-stable review patch. If anyone has any objections, please let me know. ------------------ From: David Lechner [ Upstream commit 9d6e9f10e2e031fb7bfb3030a7d1afc561a28fea ] This fix leaking the of_node references in of_dra7_atl_clk_probe(). The docs for of_parse_phandle_with_args() say that the caller must call of_node_put() on the returned node. This adds the missing of_node_put() to fix the leak. Fixes: 9ac33b0ce81f ("CLK: TI: Driver for DRA7 ATL (Audio Tracking Logic)") Signed-off-by: David Lechner Link: https://lore.kernel.org/r/20240826-clk-fix-leak-v1-1-f55418a13aa6@baylibre.com Signed-off-by: Stephen Boyd Signed-off-by: Sasha Levin --- drivers/clk/ti/clk-dra7-atl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/ti/clk-dra7-atl.c b/drivers/clk/ti/clk-dra7-atl.c index d964e3affd42c..0eab7f3e2eab9 100644 --- a/drivers/clk/ti/clk-dra7-atl.c +++ b/drivers/clk/ti/clk-dra7-atl.c @@ -240,6 +240,7 @@ static int of_dra7_atl_clk_probe(struct platform_device *pdev) } clk = of_clk_get_from_provider(&clkspec); + of_node_put(clkspec.np); if (IS_ERR(clk)) { pr_err("%s: failed to get atl clock %d from provider\n", __func__, i); -- 2.43.0