diff --git a/sound/core/compress_offload.c b/sound/core/compress_offload.c index 516ec35873256e4e598c150473fc5affabe78a20..509038d6bccdb31daa31ec82358279f61f33e5f1 100644 --- a/sound/core/compress_offload.c +++ b/sound/core/compress_offload.c @@ -529,7 +529,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 || params->buffer.fragments == 0) return -EINVAL;