aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorPei Xiao <xiaopei01@kylinos.cn>2025-12-05 11:15:13 +0800
committerGuenter Roeck <linux@roeck-us.net>2025-12-07 14:10:18 -0800
commit4910da6b36b122db50a27fabf6ab7f8611b60bf8 (patch)
treeeab500d216435d3d048822a57eccf729ea8f4624 /tools/perf/scripts/python/bin/stackcollapse-record
parenthwmon: (emc2305) fix double put in emc2305_probe_childs_from_dt (diff)
downloadlinux-4910da6b36b122db50a27fabf6ab7f8611b60bf8.tar.gz
linux-4910da6b36b122db50a27fabf6ab7f8611b60bf8.zip
hwmon: (emc2305) fix device node refcount leak in error path
The for_each_child_of_node() macro automatically manages device node reference counts during normal iteration. However, when breaking out of the loop early with return, the current iteration's node is not automatically released, leading to a reference count leak. Fix this by adding of_node_put(child) before returning from the loop when emc2305_set_single_tz() fails. This issue could lead to memory leaks over multiple probe cycles. Signed-off-by: Pei Xiao <xiaopei01@kylinos.cn> Link: https://lore.kernel.org/r/tencent_5CDC08544C901D5ECA270573D5AEE3117108@qq.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions