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

Commit f074b13f 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 possible null dereferencing in interface writeback"

parents 9c1f40f6 e2b78299
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -229,7 +229,7 @@ static int mdss_mdp_writeback_format_setup(struct mdss_mdp_writeback_ctx *ctx,
	outsize = (ctx->dst_rect.h << 16) | ctx->dst_rect.w;

	if (ctx->type == MDSS_MDP_WRITEBACK_TYPE_ROTATOR &&
			mdata->has_rot_dwnscale) {
			mdata && mdata->has_rot_dwnscale) {
		dnsc_factor = (ctx->dnsc_factor_h) | (ctx->dnsc_factor_w << 16);
		mdp_wb_write(ctx, MDSS_MDP_REG_WB_ROTATOR_PIPE_DOWNSCALER,
								dnsc_factor);