diff options
author | Kaushlendra Kumar <kaushlendra.kumar@intel.com> | 2025-08-13 12:32:08 +0530 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2025-09-25 23:12:00 -0400 |
commit | 62127655b7ab7b8c2997041aca48a81bf5c6da0c (patch) | |
tree | ba7230d07821df592595a6c7131f75b90c6da491 /samples/rust/rust_driver_platform.rs | |
parent | cafb47be3f38ad81306bf894e743bebc2ccf66ab (diff) |
tools/power x86_energy_perf_policy: Fix incorrect fopen mode usage
The fopen_or_die() function was previously hardcoded
to open files in read-only mode ("r"), ignoring the
mode parameter passed to it. This patch corrects
fopen_or_die() to use the provided mode argument,
allowing for flexible file access as intended.
Additionally, the call to fopen_or_die() in
err_on_hypervisor() incorrectly used the mode
"ro", which is not a valid fopen mode. This is
fixed to use the correct "r" mode.
Signed-off-by: Kaushlendra Kumar <kaushlendra.kumar@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'samples/rust/rust_driver_platform.rs')
0 files changed, 0 insertions, 0 deletions