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
> 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
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