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

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

Merge "drm/msm/sde: clear exclusion rect settings on lastclose"

parents 23c88c2b 036a2d15
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -4621,13 +4621,14 @@ static void _sde_plane_set_excl_rect_v1(struct sde_plane *psde,
{
	struct drm_clip_rect excl_rect_v1;

	if (!psde) {
		SDE_ERROR("invalid plane\n");
	if (!psde || !pstate) {
		SDE_ERROR("invalid argument(s)\n");
		return;
	}

	if (!usr_ptr) {
		SDE_DEBUG_PLANE(psde, "invalid  excl_rect user data\n");
		memset(&pstate->excl_rect, 0, sizeof(pstate->excl_rect));
		SDE_DEBUG_PLANE(psde, "excl_rect data cleared\n");
		return;
	}