diff options
| author | Len Brown <len.brown@intel.com> | 2026-05-06 10:00:00 -0400 |
|---|---|---|
| committer | Len Brown <len.brown@intel.com> | 2026-10-27 14:51:24 -0400 |
| commit | 0177067d195a4757149f6702af191987377c71c3 (patch) | |
| tree | 92bf5e1c251b3c7cf3ee7f273561aee76375f302 /scripts/Makefile.thinlto | |
| parent | db2cffbc80853d2cc37159f01bc36c18958ad6c9 (diff) | |
| download | linux-0177067d195a4757149f6702af191987377c71c3.tar.gz linux-0177067d195a4757149f6702af191987377c71c3.zip | |
x86_energy_perf_policy: Fix optarg keyword matching
Replace strncmp() with strcmp() for exact string matching in
parse_optarg_string(). Exact keyword matching is safer and clearer.
This prevents accidental matches with longer strings
like "performance-foo".
Fixes: 4beec1d75196 ("tools/power x86_energy_perf_policy: support HWP.EPP")
Assisted-by: GitHub-Copilot:Claude-Sonnet-4.6
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
