diff options
| author | Felix Gu <ustc.gu@gmail.com> | 2026-05-23 18:27:05 +0800 |
|---|---|---|
| committer | Linus Walleij <linusw@kernel.org> | 2026-06-30 10:57:50 +0200 |
| commit | 7b1272d02e65d2d4aeffb0d85b290a8753d24c12 (patch) | |
| tree | 74b726c268fb0fa76295da1afc4306a41e4e6058 /tools/perf/scripts/python/stackcollapse.py | |
| parent | dc59e4fea9d83f03bad6bddf3fa2e52491777482 (diff) | |
pinctrl: imx1: fix device_node leak in dt_is_flat_functions()
for_each_child_of_node() holds a reference on the iterator node that
must be released on early return. imx1_pinctrl_dt_is_flat_functions()
has two early return paths inside the loop that skip this cleanup.
Replace both loops with the scoped variant so that the reference is
automatically dropped when the iterator goes out of scope.
Fixes: 63d2059cd665 ("pinctrl: imx1: Allow parsing DT without function nodes")
Signed-off-by: Felix Gu <ustc.gu@gmail.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
