Re: [PATCH] powerpc/fsl_rio: Fix refcount leak in fsl_rio_setup

2022-05-24 Thread Michael Ellerman
On Thu, 12 May 2022 16:37:18 +0400, Miaoqian Lin wrote: > of_parse_phandle() returns a node pointer with refcount > incremented, we should use of_node_put() on it when not need anymore. > Add missing of_node_put() to avoid refcount leak. > > Applied to powerpc/next. [1/1] powerpc/fsl_rio: Fix

[PATCH] powerpc/fsl_rio: Fix refcount leak in fsl_rio_setup

2022-05-12 Thread Miaoqian Lin
of_parse_phandle() returns a node pointer with refcount incremented, we should use of_node_put() on it when not need anymore. Add missing of_node_put() to avoid refcount leak. Fixes: abc3aeae3aaa ("fsl-rio: Add two ports and rapidio message units support") Signed-off-by: Miaoqian Lin ---