summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2026-05-06 10:00:00 -0400
committerLen Brown <len.brown@intel.com>2026-10-03 14:53:40 -0400
commite6da4f07897276692aff69d8c9965a11d6cc3063 (patch)
tree4a52c8c8dad6f64519dd2e8a1b136c2b398b3b06 /tools/perf/scripts/python/bin
parentdfbe956fdecedc5ad35ecf2ae5a4474e2c0c5f14 (diff)
downloadlinux-next-e6da4f07897276692aff69d8c9965a11d6cc3063.tar.gz
linux-next-e6da4f07897276692aff69d8c9965a11d6cc3063.zip
x86_energy_perf_policy: Check fseek() in VM path
Add return value validation for fseek() and ensure consistent resource cleanup on all error paths in err_on_hypervisor(). The fseek() call was missing return value validation. If fseek() fails, subsequent fgets() may operate on an incorrect file position, leading to incorrect parsing or reading beyond the intended buffer boundary. Additionally, add explicit cleanup path after fseek() validation to match the pattern used in other error paths within the function. Fixes: 0936cdfbb527 ("tools/power x86_energy_perf_policy: Input/output error in a VM") Assisted-by: GitHub-Copilot:Claude-Sonnet-4.6 Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions