diff options
| author | Amarjeet <amarjeet@intel.com> | 2026-07-28 13:24:22 +0530 |
|---|---|---|
| committer | Len Brown <len.brown@intel.com> | 2026-10-03 15:28:29 -0400 |
| commit | c90b51c6f79bb2c86d27101f51344d676d9a87cd (patch) | |
| tree | b863cab92fa9a287941b98029a432e59b5350e43 /tools/perf/scripts/python | |
| parent | 928994b9dab3ab5b33f4215c8af2c292463dfb33 (diff) | |
| download | linux-next-c90b51c6f79bb2c86d27101f51344d676d9a87cd.tar.gz linux-next-c90b51c6f79bb2c86d27101f51344d676d9a87cd.zip | |
x86_energy_perf_policy: Fix write_sysfs() return type
write_sysfs() returns an unsigned int even though it returns -1 when
write() fails. This converts the error to UINT_MAX and can cause callers
that treat a nonzero return value as success to miss the failure.
Use ssize_t to match write(), update the receiving variable accordingly,
and explicitly require a positive result in sysfs_write_string().
Signed-off-by: Amarjeet <amarjeet@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
