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

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

Merge "diag: dci: Parse data till the end for events read over smd"

parents 5c20ab9c 94756491
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1105,8 +1105,12 @@ void extract_dci_events(unsigned char *buf, int len, int data_source, int token)
	/* Move directly to the start of the event series. 1 byte for
	 * event code and 2 bytes for the length field.
	 */
	/* The length field indicates the total length removing the cmd_code
	 * and the lenght field. The event parsing in that case should happen
	 * till the end.
	 */
	temp_len = 3;
	while (temp_len < (length - 1)) {
	while (temp_len < length) {
		event_id_packet = *(uint16_t *)(buf + temp_len);
		event_id = event_id_packet & 0x0FFF; /* extract 12 bits */
		if (event_id_packet & 0x8000) {