Merge branch 'pm-cpufreq'

* pm-cpufreq:
  cpufreq: fix overflow in cpufreq_table_find_index_dl()
This commit is contained in:
Rafael J. Wysocki 2016-10-20 23:24:58 +02:00
commit 350d32395b

View File

@ -677,10 +677,10 @@ static inline int cpufreq_table_find_index_dl(struct cpufreq_policy *policy,
if (best == table - 1)
return pos - table;
return best - pos;
return best - table;
}
return best - pos;
return best - table;
}
/* Works only on sorted freq-tables */