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

Commit e2b78299 authored by Veera Sundaram Sankaran's avatar Veera Sundaram Sankaran
Browse files

msm: mdss: fix possible null dereferencing in interface writeback



Added null check to avoid possible null pointer dereferencing.

Change-Id: Iedafe6e308b7b4a1d43efa7c37a26afd16fa1989
Signed-off-by: default avatarVeera Sundaram Sankaran <veeras@codeaurora.org>
parent 163e94f6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -232,7 +232,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);