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

Commit c48ef59c 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: Add NULL pointer checks in mdss_mdp_wb_set_secure"

parents 55c4d00c 33e2b5a2
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -174,6 +174,16 @@ int mdss_mdp_wb_set_secure(struct msm_fb_data_type *mfd, int enable)
		return -EINVAL;
	}

	if (!ctl || !ctl->mdata) {
		pr_err("%s : ctl is NULL", __func__);
		return -EINVAL;
	}

	if (!wb) {
		pr_err("unable to start, writeback is not initialized\n");
		return -ENODEV;
	}

	ctl->is_secure = enable;
	wb->is_secure = enable;