Re: [PATCH] xtensa: kernel: Fix refcount leak bug in time.c

From: Max Filippov
Date: Sat Jun 18 2022 - 18:02:41 EST


On Fri, Jun 17, 2022 at 5:44 AM Liang He <windhl@xxxxxxx> wrote:
>
> 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.
>
> Signed-off-by: Liang He <windhl@xxxxxxx>
> ---
> arch/xtensa/kernel/time.c | 1 +
> 1 file changed, 1 insertion(+)

Thanks. Applied to my xtensa tree.

-- Max