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

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

Merge "msm: qmi: Correct the maximum message length calculation"

parents a2abc8bd 021f194d
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -117,8 +117,9 @@ static int qmi_calc_max_msg_len(struct elem_info *ei_array,
					sizeof(uint8_t) : sizeof(uint16_t));
			continue;
		} else if (temp_ei->data_type == QMI_STRUCT) {
			max_msg_len += qmi_calc_max_msg_len(temp_ei->ei_array,
							    (level + 1));
			max_msg_len += (temp_ei->elem_len *
					qmi_calc_max_msg_len(temp_ei->ei_array,
							    (level + 1)));
		} else {
			max_msg_len += (temp_ei->elem_len * temp_ei->elem_size);
		}