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

Commit ab190d95 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drm/msm/dsi-staging: Fix buffer overflow and Null pointer dereference"

parents 78a67d88 4580e73c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1925,7 +1925,8 @@ static void dsi_config_host_engine_state_for_cont_splash
	enum dsi_engine_state host_state = DSI_CTRL_ENGINE_ON;

	/* Sequence does not matter for split dsi usecases */
	for (i = 0; i < display->ctrl_count; i++) {
	for (i = 0; (i < display->ctrl_count) &&
			(i < MAX_DSI_CTRLS_PER_DISPLAY); i++) {
		ctrl = &display->ctrl[i];
		if (!ctrl->ctrl)
			continue;