Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b17fe018 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

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

parents e4927425 888b3ff5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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__);
		/*