]> 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)
commit2a2275cd00a2f72dfbf2122f2e75162ec731af8e
treeea7751ba1f0cde0192c2032a558aaf202384bbb2
parent4e2ccb964b477f5007577d27a89c9af936116230
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