mips: cavium-octeon: Fix missing of_node_put() in octeon2_usb_clocks_start
authorLiang He <windhl@126.com>
Fri, 1 Jul 2022 12:41:12 +0000 (20:41 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Aug 2022 09:11:36 +0000 (11:11 +0200)
commitaf87a469695dc2b2419b2fdff0bf41db5265b325
treed752279c9fc916932d2b3a738030fd91f9bd0886
parent68898ddaaaf08f057de3bae45fd98a3eb2b1f6a8
mips: cavium-octeon: Fix missing of_node_put() in octeon2_usb_clocks_start

[ Upstream commit 7a9f743ceead60ed454c46fbc3085ee9a79cbebb ]

We should call of_node_put() for the reference 'uctl_node' returned by
of_get_parent() which will increase the refcount. Otherwise, there will
be a refcount leak bug.

Signed-off-by: Liang He <windhl@126.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/mips/cavium-octeon/octeon-platform.c