Skip to content

Commit 25315eb

Browse files
Yingjie Wangalexdeucher
authored andcommitted
drm/radeon: Fix a missing check bug in radeon_dp_mst_detect()
In radeon_dp_mst_detect(), We should check whether or not @connector has been unregistered from userspace. If the connector is unregistered, we should return disconnected status. Fixes: 9843ead ("drm/radeon: add DisplayPort MST support (v2)") Signed-off-by: Yingjie Wang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent a3fe0e3 commit 25315eb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/gpu/drm/radeon/radeon_dp_mst.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,9 @@ radeon_dp_mst_detect(struct drm_connector *connector,
241241
to_radeon_connector(connector);
242242
struct radeon_connector *master = radeon_connector->mst_port;
243243

244+
if (drm_connector_is_unregistered(connector))
245+
return connector_status_disconnected;
246+
244247
return drm_dp_mst_detect_port(connector, ctx, &master->mst_mgr,
245248
radeon_connector->port);
246249
}

0 commit comments

Comments
 (0)