Browse Source

Merge "Revert "asoc: check payload length against structure size""

qctecmdr 4 years ago
parent
commit
b32d95eeb5
1 changed files with 0 additions and 7 deletions
  1. 0 7
      asoc/msm-qti-pp-config.c

+ 0 - 7
asoc/msm-qti-pp-config.c

@@ -1237,13 +1237,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 >