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

Commit 130c2aff authored by Sree Sesha Aravind Vadrevu's avatar Sree Sesha Aravind Vadrevu
Browse files

msm: mdss: Sanitize input to writeback kickoff



The input frame buffer structure needs to be sanity checked for
the presence of ctl. It avoids initiating kickoff sequence
with an unattached ctl which can lead to a kernel panic.

CRs-fixed: 566720
Change-Id: I4b5cb7983092853aa2286bddee051a5e250e3744
Signed-off-by: default avatarSree Sesha Aravind Vadrevu <svadrevu@codeaurora.org>
parent c936945a
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -534,6 +534,11 @@ int mdss_mdp_wb_kickoff(struct msm_fb_data_type *mfd)
		.priv_data = &comp,
	};

	if (!ctl) {
		pr_err("no ctl attached to fb=%d devicet\n", mfd->index);
		return -ENODEV;
	}

	if (!ctl->power_on)
		return 0;