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

2022-08-02 Thread Michael Ellerman
On Sun, 5 Jun 2022 09:32:23 +0400, Miaoqian Lin wrote: > of_find_node_by_path() 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 leak

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

2022-06-04 Thread Miaoqian Lin
of_find_node_by_path() 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 --- arch/