disp: msm: sde: add proper null checks before hw_intf access

This change adds proper null checking before trying to access
hw_intf pointer.

Change-Id: Id1817dca24c176c0c97bf7d637ca08da31693c37
Signed-off-by: Samantha Tran <samtran@codeaurora.org>
此提交包含在:
Samantha Tran
2021-03-29 15:21:42 -07:00
提交者 Gerrit - the friendly Code Review server
父節點 f42268675d
當前提交 dc162469ab
共有 2 個檔案被更改,包括 2 行新增2 行删除

查看文件

@@ -52,7 +52,7 @@ bool sde_encoder_is_dsc_merge(struct drm_encoder *drm_enc)
return false;
phys_enc = sde_enc->phys_encs[0];
if (phys_enc->hw_intf->cfg.split_link_en)
if (phys_enc && phys_enc->hw_intf && phys_enc->hw_intf->cfg.split_link_en)
return false;
topology = sde_connector_get_topology_name(drm_conn);