disp: msm: sde: avoid null pointer dereference

Avoids null function pointer dereference in WriteBack object.

Change-Id: I9f23a7f9f5e72e09cfd7a955d0c0ca64b401f89e
Signed-off-by: Nisarg Bhavsar <quic_bhavsar@quicinc.com>
This commit is contained in:
Nisarg Bhavsar
2022-03-16 11:39:13 -07:00
父節點 6ddda369b3
當前提交 a9c8b41adf

查看文件

@@ -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) {