diff options
| author | Liang He <[email protected]> | 2022-07-01 22:49:48 +0800 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2022-09-05 17:28:26 +1000 |
| commit | ad4b323693abd221798a6479105d22c79605aa0f (patch) | |
| tree | e71e4b48ee87810281f983c6831740ce62b06915 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | d9e1c6104d87d4027133b28f5ccab8f999830acd (diff) | |
powerpc/cell: Add missing of_node_put()s in cbe_regs.c
There are several bugs as following:
(1) In cbe_get_be_node(), hold the reference returned by of_find_xxx and
of_get_xxx OF APIs and use it to call of_node_put().
(2) In cbe_fill_regs_map(), same as above.
(3) In cbe_regs_init(), during the iteration of for_each_node_by_type(),
the refcount of 'cpu' will be automatically increased and decreased.
However, there is a reference escaped out into 'map->cpu_node' and
it should be properly handled.
Signed-off-by: Liang He <[email protected]>
[mpe: Drop references before pointer equality test in cbe_get_be_node()]
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions