]> git.baikalelectronics.ru Git - kernel.git/commit
mips: ralink: Fix refcount leak in of.c
authorLiang He <windhl@126.com>
Fri, 17 Jun 2022 03:39:29 +0000 (11:39 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 21 Jun 2022 15:04:30 +0000 (17:04 +0200)
commit6dfe4f4fff036fbf4e40753ecd88790fbd2189a2
tree72bea3db03a235a498c53bef6b16644e90a3c7c5
parent5f12c23a442120a66bf18e8f9496ccd226b29767
mips: ralink: Fix refcount leak in of.c

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

Signed-off-by: Liang He <windhl@126.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/ralink/of.c