Loading drivers/char/diag/diag_dci.c +5 −1 Original line number Diff line number Diff line Loading @@ -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) { Loading Loading
drivers/char/diag/diag_dci.c +5 −1 Original line number Diff line number Diff line Loading @@ -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) { Loading