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

Commit 2d5e2087 authored by Sandeep Panda's avatar Sandeep Panda
Browse files

drm/msm/dsi-staging: fix invalid conversion to dsi display reference



In the current implementation when LP_RX_TIMEOUT error occures, then dsi
driver is passing wrong member name to "container_of" macro to get the
reference to dsi display structure. This is will cause "container_of" to
return invalid reference of dsi display pointer. Fix this by passing the
correct member name.

Change-Id: Iaf71eeb511e3a6d5dc612a7baacc49b480a0508d
Signed-off-by: default avatarSandeep Panda <spanda@codeaurora.org>
parent c9876a6f
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -4452,8 +4452,9 @@ static void dsi_display_handle_lp_rx_timeout(struct work_struct *work)
	void *data;
	u32 version = 0;

	display =  container_of(work, struct dsi_display, fifo_overflow_work);
	if (!display || (display->panel->panel_mode != DSI_OP_VIDEO_MODE))
	display =  container_of(work, struct dsi_display, lp_rx_timeout_work);
	if (!display || !display->panel ||
			(display->panel->panel_mode != DSI_OP_VIDEO_MODE))
		return;
	pr_debug("handle DSI LP RX Timeout error\n");