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

Commit c5284de6 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: vidc: Avoid integer overflow for supported bitrate calculation"

parents b6069086 f4065395
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1361,7 +1361,7 @@ static unsigned long __get_clock_rate_with_bitrate(struct clock_info *clock,
			continue;

		freq = table[i].freq;
		supported_bitrate = table[i].freq * 40/100;
		supported_bitrate = freq * 40/100;

		if (table[i].freq >= base_freq &&
			supported_bitrate >= instant_bitrate)