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

Commit 85d3620d authored by Fuad Hossain's avatar Fuad Hossain
Browse files

drm/msm: free atomic state during lastclose



Ensure that the refcount of the atomic state is decremented
during lastclose. This will make sure that when the atomic
state is freed, all objects being held by it are released.

Change-Id: I547cf997b9eb80560c9646f688071fb6a41648b2
Signed-off-by: default avatarFuad Hossain <fhossain@codeaurora.org>
parent 569a366a
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -979,8 +979,6 @@ static int msm_disable_all_modes(
		drm_modeset_backoff(ctx);
	}

	/* on successful atomic commit state ownership transfers to framework */
	if (ret != 0)
	drm_atomic_state_put(state);

	return ret;