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

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

Merge "mdss: display: Fix DCS command parsing for short commands"

parents c7fb82ae f0f2391d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -333,7 +333,7 @@ static int mdss_dsi_parse_dcs_cmds(struct device_node *np,
	bp = buf;
	len = blen;
	cnt = 0;
	while (len > sizeof(*dchdr)) {
	while (len >= sizeof(*dchdr)) {
		dchdr = (struct dsi_ctrl_hdr *)bp;
		dchdr->dlen = ntohs(dchdr->dlen);
		if (dchdr->dlen > len) {