]> www.infradead.org Git - users/dwmw2/linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jun 2022 06:59:53 +0000 (08:59 +0200)
commitaf0ff2da01521144bc11194f4c26485d7c9cee73
treeed3d00e9d46ae64dc36d3462a18c4e15b986694e
parent6c0839cf1b9e1b3c88da6af76794583cbfae8da3
xtensa: Fix refcount leak bug in time.c

commit a0117dc956429f2ede17b323046e1968d1849150 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/xtensa/kernel/time.c