1
0

Revert "asoc: check payload length against structure size"

This reverts commit 2f35e4997c3e78a83fcdc459f4dcbbbaddc85d2d.
Payload size is specified in ASM callback,
which allocates memory consequently.
The check was unnecessary and incorrect.

Change-Id: I130870148db9c31a885b86f7ea495a8e843958d8
Este cometimento está contido em:
Xiaojun Sang
2019-01-17 15:45:13 +08:00
cometido por Gerrit - the friendly Code Review server
ascendente 127718f3d9
cometimento a12af78a6b

Ver ficheiro

@@ -1238,13 +1238,6 @@ int msm_adsp_inform_mixer_ctl(struct snd_soc_pcm_runtime *rtd,
}
event_data = (struct msm_adsp_event_data *)payload;
if (event_data->payload_len < sizeof(struct msm_adsp_event_data)) {
pr_err("%s: event_data size of %x is less than expected.\n",
__func__, event_data->payload_len);
ret = -EINVAL;
goto done;
}
kctl->info(kctl, &kctl_info);
if (event_data->payload_len >