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:40:41 +0000 (11:40 +0200)
commit7822d994eb9579a1df4cdbc315db090a041e50f3
tree0a454ef492695e7397e5c862f52b02eb88933233
parentc983edb0623900a1365808a03d881c599c9f2fc5
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