aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorJavier Carrasco <[email protected]>2024-11-08 16:28:26 -0800
committerGreg Kroah-Hartman <[email protected]>2024-11-10 10:56:46 +0100
commit77adf4b1f3e1fdb319f7ee515e5924bb77df3916 (patch)
treeee3ce3e326a870872dc965bdc790e64bed26e90b /tools/perf/scripts/python/export-to-postgresql.py
parent5de07b8a24cf44cdb78adeab790704bf577c2c1d (diff)
spmi: pmic-arb: fix return path in for_each_available_child_of_node()
This loop requires explicit calls to of_node_put() upon early exits (break, goto, return) to decrement the child refcounter and avoid memory leaks if the child is not required out of the loop. A more robust solution is using the scoped variant of the macro, which automatically calls of_node_put() when the child goes out of scope. Cc: [email protected] Fixes: 979987371739 ("spmi: pmic-arb: Add multi bus support") Signed-off-by: Javier Carrasco <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Neil Armstrong <[email protected]> Signed-off-by: Stephen Boyd <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions