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

Commit 8737f036 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: mdss: allow overlay set to recover on 8x10"

parents d55e3c18 9899e15e
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -665,15 +665,15 @@ static int mdp3_overlay_set(struct msm_fb_data_type *mfd,

	mutex_lock(&mdp3_session->lock);

	if (mdp3_session->overlay.id == req->id) {
	if (mdp3_session->overlay.id != req->id)
		pr_err("overlay was not released, continue to recover\n");

	mdp3_session->overlay = *req;
	if (req->id == MSMFB_NEW_REQUEST) {
		mdp3_session->overlay.id = 1;
		req->id = 1;
	}
	} else {
		rc = -EINVAL;
	}

	mutex_unlock(&mdp3_session->lock);

	return rc;