diff options
author | 2023-03-20 16:17:02 +0800 | |
---|---|---|
committer | 2023-03-22 20:10:59 +0100 | |
commit | 877d5cd2aeed8fddeb3afe174c6b9eb77cd56f8b (patch) | |
tree | e142bea433dff71bee80a4e43a4c8b979439ad02 /scripts/generate_rust_analyzer.py | |
parent | Documentation: cpufreq: amd-pstate: Update amd_pstate status sysfs for guided (diff) | |
download | linux-rng-877d5cd2aeed8fddeb3afe174c6b9eb77cd56f8b.tar.xz linux-rng-877d5cd2aeed8fddeb3afe174c6b9eb77cd56f8b.zip |
cpufreq: warn about invalid vals to scaling_max/min_freq interfaces
When echo an invalid val to scaling_min_freq:
> echo 123abc123 > scaling_min_freq
It looks weird to have a return val of 0:
> echo $?
> 0
Sane people won't echo strings like that into these interfaces but fuzz
tests may do. Also, maybe it's better to inform people if input is
invalid.
After this:
> echo 123abc123 > scaling_min_freq
> -bash: echo: write error: Invalid argument
Signed-off-by: qinyu <qinyu32@huawei.com>
Tested-by: zhangxiaofeng <zhangxiaofeng46@huawei.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions