]>
Commit | Line | Data |
---|---|---|
ec71c73b GKH |
1 | From 446fae2bb5395f3028d8e3aae1508737e5a72ea1 Mon Sep 17 00:00:00 2001 |
2 | From: Yangtao Li <tiny.windzz@gmail.com> | |
3 | Date: Mon, 4 Feb 2019 02:48:54 -0500 | |
4 | Subject: cpufreq: tegra124: add missing of_node_put() | |
5 | ||
6 | From: Yangtao Li <tiny.windzz@gmail.com> | |
7 | ||
8 | commit 446fae2bb5395f3028d8e3aae1508737e5a72ea1 upstream. | |
9 | ||
10 | of_cpu_device_node_get() will increase the refcount of device_node, | |
11 | it is necessary to call of_node_put() at the end to release the | |
12 | refcount. | |
13 | ||
14 | Fixes: 9eb15dbbfa1a2 ("cpufreq: Add cpufreq driver for Tegra124") | |
15 | Cc: <stable@vger.kernel.org> # 4.4+ | |
16 | Signed-off-by: Yangtao Li <tiny.windzz@gmail.com> | |
17 | Acked-by: Thierry Reding <treding@nvidia.com> | |
18 | Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> | |
19 | Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> | |
20 | ||
21 | --- | |
22 | drivers/cpufreq/tegra124-cpufreq.c | 2 ++ | |
23 | 1 file changed, 2 insertions(+) | |
24 | ||
25 | --- a/drivers/cpufreq/tegra124-cpufreq.c | |
26 | +++ b/drivers/cpufreq/tegra124-cpufreq.c | |
27 | @@ -134,6 +134,8 @@ static int tegra124_cpufreq_probe(struct | |
28 | ||
29 | platform_set_drvdata(pdev, priv); | |
30 | ||
31 | + of_node_put(np); | |
32 | + | |
33 | return 0; | |
34 | ||
35 | out_switch_to_pllx: |