]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3353c399236c812e816adfaa6dca5cf26ad483b8
tree828718baec0cc6270761d05dd4c64f361052534d
parent71374b58ebc7666369d670c06d1176f81c437c59
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