Skip to content

Commit

Permalink
drm/radeon: Fix a missing check bug in radeon_dp_mst_detect()
Browse files Browse the repository at this point in the history
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 <wangyingjie55@126.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Yingjie Wang authored and Alex Deucher committed Apr 9, 2021
1 parent a3fe0e3 commit 25315eb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gpu/drm/radeon/radeon_dp_mst.c
Original file line number Diff line number Diff line change
@@ -241,6 +241,9 @@ radeon_dp_mst_detect(struct drm_connector *connector,
to_radeon_connector(connector);
struct radeon_connector *master = radeon_connector->mst_port;

if (drm_connector_is_unregistered(connector))
return connector_status_disconnected;

return drm_dp_mst_detect_port(connector, ctx, &master->mst_mgr,
radeon_connector->port);
}

0 comments on commit 25315eb

Please sign in to comment.