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

Commit f814eff9 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "disp: msm: sde: add null pointer checks"

parents 358f30e2 c0e8e227
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -757,9 +757,10 @@ static void sde_encoder_phys_vid_enable(struct sde_encoder_phys *phys_enc)
	vid_enc = to_sde_encoder_phys_vid(phys_enc);
	intf = phys_enc->hw_intf;
	ctl = phys_enc->hw_ctl;
	if (!phys_enc->hw_intf || !phys_enc->hw_ctl) {
		SDE_ERROR("invalid hw_intf %d hw_ctl %d\n",
				!phys_enc->hw_intf, !phys_enc->hw_ctl);
	if (!phys_enc->hw_intf || !phys_enc->hw_ctl || !phys_enc->hw_pp) {
		SDE_ERROR("invalid hw_intf %d hw_ctl %d hw_pp %d\n",
				!phys_enc->hw_intf, !phys_enc->hw_ctl,
				!phys_enc->hw_pp);
		return;
	}
	if (!ctl->ops.update_bitmask_intf ||