Re: [PATCH] powerpc: perf: Fix refcount leak bug in imc-pmu.c

2022-09-09 Thread Michael Ellerman
On Sat, 18 Jun 2022 15:13:53 +0800, Liang He wrote: > In update_events_in_group(), of_find_node_by_phandle() will return > a node pointer with refcount incremented. We should use of_node_put() > in fail path or when it is not used anymore. > > Applied to powerpc/next. [1/1] powerpc: perf: Fix r

Re: [PATCH] powerpc: perf: Fix refcount leak bug in imc-pmu.c

2022-06-27 Thread Athira Rajeev
> On 18-Jun-2022, at 12:43 PM, Liang He wrote: > > In update_events_in_group(), of_find_node_by_phandle() will return > a node pointer with refcount incremented. We should use of_node_put() > in fail path or when it is not used anymore. > > Signed-off-by: Liang He Reviewed-by: Athira Rajeev

[PATCH] powerpc: perf: Fix refcount leak bug in imc-pmu.c

2022-06-18 Thread Liang He
In update_events_in_group(), of_find_node_by_phandle() will return a node pointer with refcount incremented. We should use of_node_put() in fail path or when it is not used anymore. Signed-off-by: Liang He --- arch/powerpc/perf/imc-pmu.c | 10 -- 1 file changed, 8 insertions(+), 2 deleti