diff options
| author | Len Brown <len.brown@intel.com> | 2026-05-04 15:38:34 -0400 |
|---|---|---|
| committer | Len Brown <len.brown@intel.com> | 2026-10-03 13:10:29 -0400 |
| commit | 32ddba2eea51364cf29554f9b37253fe03868d3f (patch) | |
| tree | 67ec3b501abc4ced1b76df6e80bfc1023e21be95 /tools/perf/scripts/python/parallel-perf.py | |
| parent | fd5b2dad7ac10fbd836d107d75b141e5a223cf55 (diff) | |
| download | linux-next-32ddba2eea51364cf29554f9b37253fe03868d3f.tar.gz linux-next-32ddba2eea51364cf29554f9b37253fe03868d3f.zip | |
tools/power turbostat: pmt: Improve sscanf() hygiene
Explicitly check sscanf() return values for number of matches,
and handle EOF (-1).
Defensive programming -- not an issue seen by users.
Fixes: 4265a86582ea ("tools/power turbostat: Add PMT directory iterator helper")
Assisted-by: Claude: Claude Sonnet 4.6
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/parallel-perf.py')
0 files changed, 0 insertions, 0 deletions
