]> git.ipfire.org Git - thirdparty/kernel/stable.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:40:31 +0000 (20:40 +0200)
commit4f242486bf46d314b2e3838cc64b56f008a3c4d7
tree552936e906ab1c76737af5dc7e1d1e6d09f895c8
parent840d81ff43a2da37f7be04f1c0f92ad31e0428c0
cpufreq: pmac32-cpufreq: Fix refcount leak bug

[ Upstream commit ccd7567d4b6cf187fdfa55f003a9e461ee629e36 ]

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