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

Commit 1d4bc7dc authored by Jayant Shekhar's avatar Jayant Shekhar Committed by Gerrit - the friendly Code Review server
Browse files

drm/msm/sde: Fix out of bound access in ESD notify event



For event notification, event length is used to perform
copy to notify structure. Use correct event length such
that there is no out of bound access.

Change-Id: I781c8efc34ec506247554c6ab1dd10f912835da6
Signed-off-by: default avatarJayant Shekhar <jshekhar@codeaurora.org>
parent b2620cbd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1673,7 +1673,7 @@ static void sde_connector_check_status_work(struct work_struct *work)
			conn->base.base.id, conn->encoder->base.id);
	panel_dead = true;
	event.type = DRM_EVENT_PANEL_DEAD;
	event.length = sizeof(u32);
	event.length = sizeof(bool);
	msm_mode_object_event_notify(&conn->base.base,
		conn->base.dev, &event, (u8 *)&panel_dead);
}