[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190322111221.598131080@linuxfoundation.org>
Date: Fri, 22 Mar 2019 12:15:42 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-kernel@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
stable@...r.kernel.org, Yangtao Li <tiny.windzz@...il.com>,
Thierry Reding <treding@...dia.com>,
Viresh Kumar <viresh.kumar@...aro.org>
Subject: [PATCH 4.9 070/118] cpufreq: tegra124: add missing of_node_put()
4.9-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yangtao Li <tiny.windzz@...il.com>
commit 446fae2bb5395f3028d8e3aae1508737e5a72ea1 upstream.
of_cpu_device_node_get() will increase the refcount of device_node,
it is necessary to call of_node_put() at the end to release the
refcount.
Fixes: 9eb15dbbfa1a2 ("cpufreq: Add cpufreq driver for Tegra124")
Cc: <stable@...r.kernel.org> # 4.4+
Signed-off-by: Yangtao Li <tiny.windzz@...il.com>
Acked-by: Thierry Reding <treding@...dia.com>
Signed-off-by: Viresh Kumar <viresh.kumar@...aro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
---
drivers/cpufreq/tegra124-cpufreq.c | 2 ++
1 file changed, 2 insertions(+)
--- a/drivers/cpufreq/tegra124-cpufreq.c
+++ b/drivers/cpufreq/tegra124-cpufreq.c
@@ -134,6 +134,8 @@ static int tegra124_cpufreq_probe(struct
platform_set_drvdata(pdev, priv);
+ of_node_put(np);
+
return 0;
out_switch_to_pllx:
Powered by blists - more mailing lists