Merge branch 'pm-cpufreq'
* pm-cpufreq: cpufreq: fix overflow in cpufreq_table_find_index_dl()
This commit is contained in:
commit
350d32395b
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user