Browse Source

Merge "dsp: q6adm: fix boundary check for copp idx"

Linux Build Service Account 6 years ago
parent
commit
3b193e414d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dsp/q6adm.c

+ 1 - 1
dsp/q6adm.c

@@ -1389,7 +1389,7 @@ static int adm_process_get_param_response(u32 opcode, u32 idx, u32 *payload,
 	 */
 	if ((payload_size >= struct_size + data_size) &&
 	    (ARRAY_SIZE(adm_get_parameters) > idx) &&
-	    (ARRAY_SIZE(adm_get_parameters) >= idx + 1 + data_size)) {
+	    (ARRAY_SIZE(adm_get_parameters) > idx + 1 + data_size)) {
 		pr_debug("%s: Received parameter data in band\n",
 					__func__);
 		/*