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

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

Merge "mdss: mdp: Add null check for ctl"

parents 5a2c9e54 d48974bb
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -738,6 +738,12 @@ int mdss_mdp_resource_control(struct mdss_mdp_ctl *ctl, u32 sw_event)
	int rc = 0;
	bool schedule_off = false;

	if (!ctl) {
		pr_err("%s invalid ctl\n", __func__);
		rc = -EINVAL;
		goto exit;
	}

	/* Get both controllers in the correct order for dual displays */
	mdss_mdp_get_split_display_ctls(&ctl, &sctl);