summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/parallel-perf.py
diff options
context:
space:
mode:
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>2024-10-31 15:33:36 +0300
committerClaudiu Beznea <claudiu.beznea@tuxon.dev>2024-12-08 18:32:14 +0300
commitd3455ab798100f40af77123e7c2443ec979c546b (patch)
tree77f66e1d48680af631a506a49676fbe1ec96a106 /tools/perf/scripts/python/parallel-perf.py
parent40384c840ea1944d7c5a392e8975ed088ecf0b37 (diff)
downloadlinux-d3455ab798100f40af77123e7c2443ec979c546b.tar.xz
soc: atmel: fix device_node release in atmel_soc_device_init()
A device_node acquired via of_find_node_by_path() requires explicit calls to of_node_put() when it is no longer needed to avoid leaking the resource. Instead of adding the missing calls to of_node_put() in all execution paths, use the cleanup attribute for 'np' by means of the __free() macro, which automatically calls of_node_put() when the variable goes out of scope. Fixes: 960ddf70cc11 ("drivers: soc: atmel: Avoid calling at91_soc_init on non AT91 SoCs") Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com> Link: https://lore.kernel.org/r/20241031-soc-atmel-soc-cleanup-v2-1-73f2d235fd98@gmail.com Signed-off-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
Diffstat (limited to 'tools/perf/scripts/python/parallel-perf.py')
0 files changed, 0 insertions, 0 deletions