]> www.infradead.org Git - users/dwmw2/linux.git/commit
drivers: cpufreq: Add missing of_node_put() in qoriq-cpufreq.c
authorLiang He <windhl@126.com>
Wed, 15 Jun 2022 09:48:07 +0000 (17:48 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Jul 2022 15:52:20 +0000 (17:52 +0200)
commit652fd40eb01cc2c9348af293dbc7b1983a91e958
tree9a4e98c82aceea729f0f6294677e920802907898
parent79963021fd718b74bed4cbc98f5f49d3ba6fb48c
drivers: cpufreq: Add missing of_node_put() in qoriq-cpufreq.c

[ Upstream commit 4ff5a9b6d95f3524bf6d27147df497eb21968300 ]

In qoriq_cpufreq_probe(), of_find_matching_node() will return a
node pointer with refcount incremented. We should use of_node_put()
when it is not used anymore.

Fixes: 157f527639da ("cpufreq: qoriq: convert to a platform driver")
[ Viresh: Fixed Author's name in commit log ]
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/qoriq-cpufreq.c