aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorJavier Carrasco <[email protected]>2024-06-24 18:43:48 +0200
committerChun-Kuang Hu <[email protected]>2024-08-15 13:53:00 +0000
commit6a4ae7f095aae36ec3211fb6efd1a10b35b0fb8e (patch)
tree3f69f22cc4d7174de4d5545de1ff3cd37079ac55 /tools/perf/scripts/python/net_dropmonitor.py
parent5beb6fba25db235b52eab34bde8112f07bb31d75 (diff)
drm/mediatek: ovl_adaptor: Use scoped variant of for_each_child_of_node()
In order to avoid potential memory leaks if new error paths are added without a call to of_node_put(), use for_each_child_of_node_scoped() instead of for_each_child_of_node(). The former automatically decrements the refcount when the child goes out of scope, which removes the need for explicit calls to of_node_put(). Signed-off-by: Javier Carrasco <[email protected]> Reviewed-by: CK Hu <[email protected]> Link: https://patchwork.kernel.org/project/dri-devel/patch/[email protected]/ Signed-off-by: Chun-Kuang Hu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions