diff options
author | Javier Carrasco <[email protected]> | 2024-05-03 19:52:32 +0200 |
---|---|---|
committer | Viresh Kumar <[email protected]> | 2024-05-28 09:31:08 +0530 |
commit | 6282fba6abd7c3c8896c239cc8aa9ec45edcb97b (patch) | |
tree | 8503ab828c07eb4a98d32ab9821ff6287557b1db /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | 1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0 (diff) |
cpufreq: sun50i: fix memory leak in dt_has_supported_hw()
The for_each_child_of_node() loop does not decrement the child node
refcount before the break instruction, even though the node is no
longer required.
This can be avoided with the new for_each_child_of_node_scoped() macro
that removes the need for any of_node_put().
Fixes: fa5aec9561cf ("cpufreq: sun50i: Add support for opp_supported_hw")
Signed-off-by: Javier Carrasco <[email protected]>
Reviewed-by: Andre Przywara <[email protected]>
Signed-off-by: Viresh Kumar <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions