import PULS_20180308
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / sound / core / compress_offload.c
index 3fdf998ad0576d864ffca38691832aec3ff7e659..90f98ce3ee870d483fea312de8d81195f42436d8 100644 (file)
@@ -480,7 +480,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 > SIZE_MAX / params->buffer.fragment_size)
+           params->buffer.fragments > INT_MAX / params->buffer.fragment_size)
                return -EINVAL;
 
        /* now codec parameters */