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

Commit e92005ce authored by Carl Vanderlip's avatar Carl Vanderlip
Browse files

msm: mdss: Fix assertive display precondition check



Ensure that assertive display hardware exists before attempting to
configure it.

Change-Id: I0cf10e03d8f1a1a7ffffd2fc280a8069c4b754b3
Signed-off-by: default avatarCarl Vanderlip <carlv@codeaurora.org>
parent 1d77d770
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1576,6 +1576,8 @@ int mdss_mdp_pp_setup_locked(struct mdss_mdp_ctl *ctl)
									ret);
		goto exit;
	}
	if (mdata->nad_cfgs == 0)
		valid_mixers = false;
	for (i = 0; i < mixer_cnt && valid_mixers; i++) {
		if (mixer_id[i] > mdata->nad_cfgs)
			valid_mixers = false;