Re: [PATCH] powerpc/xive: Fix refcount leak in xive_spapr_init

2022-05-24 Thread Michael Ellerman
On Thu, 12 May 2022 13:05:33 +0400, Miaoqian Lin wrote: > of_find_compatible_node() returns a node pointer with refcount > incremented, we should use of_node_put() on it when done. > Add missing of_node_put() to avoid refcount leak. > > Applied to powerpc/next. [1/1] powerpc/xive: Fix refcount

Re: [PATCH] powerpc/xive: Fix refcount leak in xive_spapr_init

2022-05-12 Thread Cédric Le Goater
On 5/12/22 11:05, Miaoqian Lin wrote: of_find_compatible_node() returns a node pointer with refcount incremented, we should use of_node_put() on it when done. Add missing of_node_put() to avoid refcount leak. Fixes: eac1e731b59e ("powerpc/xive: guest exploitation of the XIVE interrupt controlle

[PATCH] powerpc/xive: Fix refcount leak in xive_spapr_init

2022-05-12 Thread Miaoqian Lin
of_find_compatible_node() returns a node pointer with refcount incremented, we should use of_node_put() on it when done. Add missing of_node_put() to avoid refcount leak. Fixes: eac1e731b59e ("powerpc/xive: guest exploitation of the XIVE interrupt controller") Signed-off-by: Miaoqian Lin --- ar