Browse Source

Merge "disp: msm: sde: avoid null pointer dereference"

qctecmdr 3 years ago
parent
commit
2884396664
1 changed files with 1 additions and 1 deletions
  1. 1 1
      msm/sde/sde_encoder_phys_wb.c

+ 1 - 1
msm/sde/sde_encoder_phys_wb.c

@@ -389,7 +389,7 @@ static void _sde_encoder_phys_wb_setup_roi(struct sde_encoder_phys *phys_enc,
 	struct sde_crtc_state *cstate = to_sde_crtc_state(crtc_state);
 	struct sde_rect pu_roi = {0,};
 
-	if (hw_wb->ops.setup_roi)
+	if (!hw_wb->ops.setup_roi)
 		return;
 
 	if (hw_wb->ops.setup_crop && phys_enc->in_clone_mode) {