mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 17:13:52 +02:00
Merge branch 'thermal-intel'
Merge an adjustment of the new Power Slider interface in the int340x thermal driver. * thermal-intel: thermal: intel: int340x: Power Slider: Validate slider_balance range
This commit is contained in:
commit
b1793cd1fe
|
|
@ -67,7 +67,8 @@ static int slider_def_balance_set(const char *arg, const struct kernel_param *kp
|
|||
|
||||
ret = kstrtou8(arg, 16, &slider_val);
|
||||
if (!ret) {
|
||||
if (slider_val > SOC_SLIDER_VALUE_MAXIMUM)
|
||||
if (slider_val <= slider_values[SOC_POWER_SLIDER_PERFORMANCE] ||
|
||||
slider_val >= slider_values[SOC_POWER_SLIDER_POWERSAVE])
|
||||
return -EINVAL;
|
||||
|
||||
slider_balanced_param = slider_val;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user