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

Commit 8cacee1d authored by Sandeep Panda's avatar Sandeep Panda Committed by Gerrit - the friendly Code Review server
Browse files

drm/msm/dsi-staging: fix possible array index out of bound access



This change fixes a possible array index out of bound access issue
in DRM DSI driver.

Change-Id: I164ec7cdbcef9497d29b0b72e799fd7d2cd21905
Signed-off-by: default avatarSandeep Panda <spanda@codeaurora.org>
parent 6464c0fa
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1000,7 +1000,8 @@ static bool dsi_display_get_cont_splash_status(struct dsi_display *display)
	struct dsi_display_ctrl *ctrl;
	struct dsi_ctrl_hw *hw;

	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->ctrl)
			continue;