]> git.baikalelectronics.ru Git - kernel.git/commit
arm: mach-spear: Add missing of_node_put() in time.c
authorLiang He <windhl@126.com>
Thu, 16 Jun 2022 09:30:27 +0000 (17:30 +0800)
committerArnd Bergmann <arnd@arndb.de>
Fri, 24 Jun 2022 15:18:55 +0000 (17:18 +0200)
commit191b858cec19d12dae65e98d8358740546e791de
treef845f1b26bdf9d8e41f33ed06f1d7ec027225d13
parent37c6c8eefb52b6c485de64f8cee5dbec3cc8a0a5
arm: mach-spear: Add missing of_node_put() in time.c

In spear_setup_of_timer(), of_find_matching_node() will return a
node pointer with refcount incrementd. We should use of_node_put()
in each fail path or when it is not used anymore.

Signed-off-by: Liang He <windhl@126.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Link: https://lore.kernel.org/r/20220616093027.89fdf76-1-windhl@126.com'
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-spear/time.c