diff options
| author | Len Brown <len.brown@intel.com> | 2026-05-04 15:38:34 -0400 |
|---|---|---|
| committer | Len Brown <len.brown@intel.com> | 2026-05-24 10:26:22 -0400 |
| commit | 1c996a37fd244d19e5dbb715328c1676e28ef607 (patch) | |
| tree | f36c136ab00e937148bb757ab5fb264ed6cf5611 /scripts/Makefile.thinlto | |
| parent | f88e0542da4268bf6f7a5fa250aa6d61b2dce128 (diff) | |
| download | linux-next-1c996a37fd244d19e5dbb715328c1676e28ef607.tar.gz linux-next-1c996a37fd244d19e5dbb715328c1676e28ef607.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 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
