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

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

Merge "ASoC: compress: fix unsigned integer overflow check" into msm-4.8

parents ccda2872 9c8c53e5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -532,7 +532,7 @@ static int snd_compress_check_input(struct snd_compr_params *params)
{
	/* first let's check the buffer parameter's */
	if (params->buffer.fragment_size == 0 ||
	    params->buffer.fragments > INT_MAX / params->buffer.fragment_size)
	    params->buffer.fragments > U32_MAX / params->buffer.fragment_size)
		return -EINVAL;

	/* now codec parameters */