Thread (2 messages) 2 messages, 2 authors, 2017-10-11
DORMANTno replies REVIEWED: 7 (7M)

[PATCH 1/1] cpufreq: ti-cpufreq: add missing of_node_put()

From: viresh.kumar@linaro.org (Viresh Kumar)
Date: 2017-10-11 04:10:30
Also in: linux-omap, linux-pm

On 10-10-17, 21:27, Zumeng Chen wrote:
quoted hunk ↗ jump to hunk
call of_node_put to release the refcount of np.

Signed-off-by: Zumeng Chen <redacted>
---
 drivers/cpufreq/ti-cpufreq.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/drivers/cpufreq/ti-cpufreq.c b/drivers/cpufreq/ti-cpufreq.c
index ffcddcd..923317f 100644
--- a/drivers/cpufreq/ti-cpufreq.c
+++ b/drivers/cpufreq/ti-cpufreq.c
@@ -205,6 +205,7 @@ static int ti_cpufreq_init(void)
 
 	np = of_find_node_by_path("/");
 	match = of_match_node(ti_cpufreq_of_match, np);
+	of_node_put(np);
 	if (!match)
 		return -ENODEV;
 
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>

-- 
viresh
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help