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

Commit cb0e386b 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: prevent null pointer dereference in mixer width calculation"

parents 92058fab c39fa52d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -74,7 +74,7 @@ static inline bool is_ov_right_blend(struct mdp_rect *left_blend,
static inline u32 left_lm_w_from_mfd(struct msm_fb_data_type *mfd)
{
	struct mdss_mdp_ctl *ctl = mfd_to_ctl(mfd);
	return ctl->mixer_left->width;
	return (ctl && ctl->mixer_left) ? ctl->mixer_left->width : 0;
}

static int mdss_mdp_overlay_sd_ctrl(struct msm_fb_data_type *mfd,