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

Commit 5afeaf87 authored by Sree Sesha Aravind Vadrevu's avatar Sree Sesha Aravind Vadrevu
Browse files

msm: mdss: Sanitize overlay kickoff inputs



Overlay kickoff in certain situations can be called without a ctl
attached to the frame buffer device. These situations need to
be captured and logical path should return safely.

CRs-fixed: 619588
Change-Id: Ibee6b59be667b7e5c9841ffb49c67d86bde45026
Signed-off-by: default avatarSree Sesha Aravind Vadrevu <svadrevu@codeaurora.org>
parent 6390607e
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -993,6 +993,11 @@ int mdss_mdp_overlay_kickoff(struct msm_fb_data_type *mfd,
	int ret = 0;
	int sd_in_pipe = 0;

	if (!ctl) {
		pr_warn("kickoff on fb=%d without a ctl attched\n", mfd->index);
		return ret;
	}

	if (ctl->shared_lock)
		mutex_lock(ctl->shared_lock);