Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 350d3239 authored by Rafael J. Wysocki's avatar Rafael J. Wysocki
Browse files

Merge branch 'pm-cpufreq'

* pm-cpufreq:
  cpufreq: fix overflow in cpufreq_table_find_index_dl()
parents 1001354c c6fe46a7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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 */