summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorAlly Heev <allyheev@gmail.com>2025-11-16 19:55:44 +0530
committerMadhavan Srinivasan <maddy@linux.ibm.com>2026-05-12 11:48:47 +0530
commitacd1e47db03d4b528fd5efb8565dd0de1c79f62a (patch)
tree6a120bcfd8d48f4786085768cb82f7fdd90aa27b /tools/perf/scripts/python/event_analyzing_sample.py
parent8d57bb61734b23f6342e9de781173f1d83f90d3a (diff)
downloadlinux-acd1e47db03d4b528fd5efb8565dd0de1c79f62a.tar.gz
linux-acd1e47db03d4b528fd5efb8565dd0de1c79f62a.zip
powerpc: 82xx: fix uninitialized pointers with free attribute
Uninitialized pointers with `__free` attribute can cause undefined behavior as the memory allocated to the pointer is freed automatically when the pointer goes out of scope. powerpc/km82xx doesn't have any bugs related to this as of now, but, it is better to initialize and assign pointers with `__free` attribute in one statement to ensure proper scope-based cleanup Reported-by: Dan Carpenter <dan.carpenter@linaro.org> Closes: https://lore.kernel.org/all/aPiG_F5EBQUjZqsl@stanley.mountain/ Signed-off-by: Ally Heev <allyheev@gmail.com> Fixes: 4aa5cc1e0012 ("powerpc-km82xx.c: replace of_node_put() with __free") Reviewed-by: Christophe Leroy (CS GROUP) <chleroy@kernel.org> Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com> Link: https://patch.msgid.link/20251116-aheev-uninitialized-free-attr-km82xx-v2-1-4307e2b5300d@gmail.com
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions