Commit 3ba32ad4 authored by Liang He's avatar Liang He Committed by Zheng Zengkai
Browse files

cpufreq: pmac32-cpufreq: Fix refcount leak bug

stable inclusion
from stable-v5.10.132
commit 3ea9dbf7c2f436952bca331c6f5d72f75aca224e
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I5YS3T

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=3ea9dbf7c2f436952bca331c6f5d72f75aca224e



--------------------------------

[ Upstream commit ccd7567d ]

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: default avatarLiang He <windhl@126.com>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Acked-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
parent 42e283dd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment