diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index e16db479eff5..606ccc160cf0 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -2252,7 +2252,7 @@ static int cpufreq_set_policy(struct cpufreq_policy *policy, * because new_policy is a copy of policy with one field updated. */ if (new_policy->min > new_policy->max) - return -EINVAL; + new_policy->min = new_policy->max; /* verify the cpu speed can be set within this limit */ ret = cpufreq_driver->verify(new_policy);