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

Commit b14ec0e0 authored by Yashwanth's avatar Yashwanth
Browse files

disp: msm: sde: update input fence after plane state destroy



In few cases, even though input fence is freed, it might
get accessed through debugfs node. This change updates
input fence in plane state destroy to prevent accessing
it.

Change-Id: I1a3799249e6a177af87653e17d014d1dad7ca638
Signed-off-by: default avatarYashwanth <yvulapu@codeaurora.org>
parent 19277622
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -5860,6 +5860,7 @@ static int _sde_debugfs_fence_status_show(struct seq_file *s, void *data)
			pstate->stage);

		fence = pstate->input_fence;
		SDE_EVT32(DRMID(crtc), fence);
		if (fence)
			sde_fence_list_dump(fence, &s);
	}
+1 −0
Original line number Diff line number Diff line
@@ -4129,6 +4129,7 @@ static void sde_plane_destroy_state(struct drm_plane *plane,
	/* remove ref count for fence */
	if (pstate->input_fence)
		sde_sync_put(pstate->input_fence);
	pstate->input_fence = 0;

	/* destroy value helper */
	msm_property_destroy_state(&psde->property_info, pstate,