Merge "ASoC: msm: qdsp6v2: check param length for EAC3 format"

This commit is contained in:
Linux Build Service Account 2016-08-10 18:29:16 -07:00 committed by Gerrit - the friendly Code Review server
commit c1a093b252

View file

@ -1070,6 +1070,7 @@ static int msm_compr_ioctl_shared(struct snd_pcm_substream *substream,
__func__, ddp->params_length);
return -EINVAL;
}
params_length = ddp->params_length*sizeof(int);
if (params_length > MAX_AC3_PARAM_SIZE) {
/*MAX is 36*sizeof(int) this should not happen*/
pr_err("%s: params_length(%d) is greater than %zd\n",