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)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 5 Jul 2022 09:16:03 +0000 (11:16 +0200)
commit7a9f743ceead60ed454c46fbc3085ee9a79cbebb
tree4ae608dee80c8e6f20407ace5b0214cc5af3e408
parent5f7e2f3e7ce78719c438e9240ea7aa6779632068
mips: cavium-octeon: Fix missing of_node_put() in octeon2_usb_clocks_start

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>
arch/mips/cavium-octeon/octeon-platform.c