drm/bridge: synopsys: dw-hdmi: check hdmi->cec_adap when hpd occur

hdmi->cec_adap may be null when system boot and hpd occur.

Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I208412b9b8b1e3fd846e62bf5e1f86e706d678e6
This commit is contained in:
Algea Cao
2021-08-20 16:51:37 +08:00
committed by Tao Huang
parent e133944d0a
commit 79fa403744

View File

@@ -396,7 +396,8 @@ static void repo_hpd_event(struct work_struct *p_work)
bool change;
change = drm_helper_hpd_irq_event(hdmi->bridge.dev);
if (change && hdmi->cec_adap->devnode.registered)
if (change && hdmi->cec_adap &&
hdmi->cec_adap->devnode.registered)
cec_queue_pin_hpd_event(hdmi->cec_adap,
hdmi->hpd_state,
ktime_get());