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

Commit 50de48f6 authored by Kyle Yan's avatar Kyle Yan Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ALSA: core: Fix crash by avoiding appl_ptr crossing 32-bit boundary" into msm-4.8

parents 250c73a6 8428b71d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -587,7 +587,8 @@ static int snd_pcm_hw_params(struct snd_pcm_substream *substream,
	runtime->silence_threshold = 0;
	runtime->silence_size = 0;
	runtime->boundary = runtime->buffer_size;
	while (runtime->boundary * 2 <= LONG_MAX - runtime->buffer_size)
	while (runtime->boundary * 2 * runtime->channels <=
					LONG_MAX - runtime->buffer_size)
		runtime->boundary *= 2;

	snd_pcm_timer_resolution_change(substream);