diff options
author | Miaoqian Lin <[email protected]> | 2022-06-05 12:33:34 +0400 |
---|---|---|
committer | Mathieu Poirier <[email protected]> | 2022-06-14 16:54:57 -0600 |
commit | fa220c05d282e7479abe08b54e3bdffd06c25e97 (patch) | |
tree | a851692656b816fc0ce76507270c2a18498fe825 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | b13baccc3850ca8b8cccbf8ed9912dbaa0fdf7f3 (diff) |
remoteproc: k3-r5: Fix refcount leak in k3_r5_cluster_of_init
Every iteration of for_each_available_child_of_node() decrements
the reference count of the previous node.
When breaking early from a for_each_available_child_of_node() loop,
we need to explicitly call of_node_put() on the child node.
Add missing of_node_put() to avoid refcount leak.
Fixes: 6dedbd1d5443 ("remoteproc: k3-r5: Add a remoteproc driver for R5F subsystem")
Signed-off-by: Miaoqian Lin <[email protected]>
Acked-by: Suman Anna <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mathieu Poirier <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions