Skip to content

Commit 9d56712

Browse files
Marek Vasutgregkh
authored andcommitted
drm/bridge: tc358767: Check if fully initialized before signalling HPD event via IRQ
[ Upstream commit 162e48c ] Make sure the connector is fully initialized before signalling any HPD events via drm_kms_helper_hotplug_event(), otherwise this may lead to NULL pointer dereference. Signed-off-by: Marek Vasut <[email protected]> Reviewed-by: Robert Foss <[email protected]> Signed-off-by: Robert Foss <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Sasha Levin <[email protected]>
1 parent d9612c6 commit 9d56712

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/bridge/tc358767.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2034,7 +2034,7 @@ static irqreturn_t tc_irq_handler(int irq, void *arg)
20342034
dev_err(tc->dev, "syserr %x\n", stat);
20352035
}
20362036

2037-
if (tc->hpd_pin >= 0 && tc->bridge.dev) {
2037+
if (tc->hpd_pin >= 0 && tc->bridge.dev && tc->aux.drm_dev) {
20382038
/*
20392039
* H is triggered when the GPIO goes high.
20402040
*

0 commit comments

Comments
 (0)