xtensa: Fix refcount leak bug in time.c
authorLiang He <windhl@126.com>
Fri, 17 Jun 2022 12:44:32 +0000 (20:44 +0800)
committerMax Filippov <jcmvbkbc@gmail.com>
Sat, 18 Jun 2022 21:46:59 +0000 (14:46 -0700)
commita0117dc956429f2ede17b323046e1968d1849150
tree828718baec0cc6270761d05dd4c64f361052534d
parentb13baccc3850ca8b8cccbf8ed9912dbaa0fdf7f3
xtensa: Fix refcount leak bug in time.c

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

Cc: stable@vger.kernel.org
Signed-off-by: Liang He <windhl@126.com>
Message-Id: <20220617124432.4049006-1-windhl@126.com>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/kernel/time.c