Skip to content
Snippets Groups Projects
Commit c360228e authored by Yingjie Wang's avatar Yingjie Wang Committed by Greg Kroah-Hartman
Browse files

drm/radeon: Fix a missing check bug in radeon_dp_mst_detect()


[ Upstream commit 25315ebf ]

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: 9843ead0 ("drm/radeon: add DisplayPort MST support (v2)")
Signed-off-by: default avatarYingjie Wang <wangyingjie55@126.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent a6d56760
No related branches found
No related tags found
No related merge requests found
......@@ -242,6 +242,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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment