mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user