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

Commit 33160f9e 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: Fix NULL pointer dereference in mdss_mdp_display_wait4comp"

parents 34adb2a3 5edff027
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1812,6 +1812,11 @@ int mdss_mdp_display_wait4comp(struct mdss_mdp_ctl *ctl)
	u32 reg_data, flush_data;
	struct mdss_data_type *mdata = mdss_mdp_get_mdata();

	if (!ctl) {
		pr_err("invalid ctl\n");
		return -ENODEV;
	}

	ret = mutex_lock_interruptible(&ctl->lock);
	if (ret)
		return ret;