]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: pmac32-cpufreq: Fix refcount leak bug
authorLiang He <windhl@126.com>
Sat, 18 Jun 2022 02:25:45 +0000 (10:25 +0800)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 28 Jun 2022 08:04:51 +0000 (13:34 +0530)
commit755a3b70e027c83bf4ffacb8c25bca0f47040f52
treed595ed2e9aa2b9a9326a3f917ea80e34c306ebef
parent9963943dcaf04f7aed6c4f972d8182d201897ed3
cpufreq: pmac32-cpufreq: Fix refcount leak bug

In pmac_cpufreq_init_MacRISC3(), we need to add corresponding
of_node_put() for the three node pointers whose refcount have
been incremented by of_find_node_by_name().

Signed-off-by: Liang He <windhl@126.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/pmac32-cpufreq.c