]> git.baikalelectronics.ru Git - kernel.git/commit
mips: mti-malta: Fix refcount leak in malta-time.c
authorLiang He <windhl@126.com>
Thu, 16 Jun 2022 14:27:56 +0000 (22:27 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 21 Jun 2022 15:04:30 +0000 (17:04 +0200)
commit5f12c23a442120a66bf18e8f9496ccd226b29767
treeea7751ba1f0cde0192c2032a558aaf202384bbb2
parente0b977714e9db51832a50401adf093bd07087cfd
mips: mti-malta: Fix refcount leak in malta-time.c

In update_gic_frequency_dt(), of_find_compatible_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/mti-malta/malta-time.c