]> git.baikalelectronics.ru Git - kernel.git/commit
mips/pic32/pic32mzda: Fix refcount leak bugs
authorLiang He <windhl@126.com>
Sun, 19 Jun 2022 04:54:27 +0000 (12:54 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 21 Jun 2022 15:04:54 +0000 (17:04 +0200)
commit0acee31247fe1e6b9bfad210bed22e114f24e327
tree92d4b7a7356fd6c5402c90e27d1785a7d8f1090c
parentae1cbbcb499679c266d6c59b810165e728469032
mips/pic32/pic32mzda: Fix refcount leak bugs

of_find_matching_node(), of_find_compatible_node() and
of_find_node_by_path() will return node pointers with refcout
incremented. We should call of_node_put() when they are not
used anymore.

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