diff options
| author | Miaoqian Lin <[email protected]> | 2022-06-05 10:00:38 +0400 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2022-11-24 23:12:19 +1100 |
| commit | 1d09697ff22908ae487fc8c4fbde1811732be523 (patch) | |
| tree | f29727f402ee8dec0bb3fd729dab633a2e958d4c /tools/perf/scripts/python/flamegraph.py | |
| parent | 37195edebf479b94f1e20c2a83a29e4beebe7ff5 (diff) | |
cxl: Fix refcount leak in cxl_calc_capp_routing
of_get_next_parent() returns a node pointer with refcount incremented,
we should use of_node_put() on it when not need anymore.
This function only calls of_node_put() in normal path,
missing it in the error path.
Add missing of_node_put() to avoid refcount leak.
Fixes: f24be42aab37 ("cxl: Add psl9 specific code")
Signed-off-by: Miaoqian Lin <[email protected]>
Acked-by: Andrew Donnellan <[email protected]>
Acked-by: Frederic Barrat <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions