]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 Jul 2022 18:59:24 +0000 (20:59 +0200)
commit0ea74c30176a35e982dce7f371d3ddb49845affe
treed67baf08104326796f6cac3ca8b11e29cf1c5650
parent24f2fae39b9efadf159e7151518f43f2afb82da6
cpufreq: pmac32-cpufreq: Fix refcount leak bug

[ Upstream commit 755a3b70e027c83bf4ffacb8c25bca0f47040f52 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/cpufreq/pmac32-cpufreq.c