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

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

Merge "ASoC: compress: fix unsigned integer overflow check"

parents 90b46edd 1cbe986b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -494,7 +494,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 */