[PATCH] drm/radeon: don't do mst probing is MST isn't enabled.

Dave Airlie airlied at gmail.com
Tue May 12 16:51:01 PDT 2015


From: Dave Airlie <airlied at redhat.com>

This causes an oops as we haven't initialised the mst
layer.

Reported-by: Dave Jones <<davej at codemonkey.org.uk>
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
 drivers/gpu/drm/radeon/radeon_dp_mst.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/radeon/radeon_dp_mst.c b/drivers/gpu/drm/radeon/radeon_dp_mst.c
index 1017338..2b98ed3 100644
--- a/drivers/gpu/drm/radeon/radeon_dp_mst.c
+++ b/drivers/gpu/drm/radeon/radeon_dp_mst.c
@@ -666,6 +666,9 @@ radeon_dp_mst_probe(struct radeon_connector *radeon_connector)
 	int ret;
 	u8 msg[1];
 
+	if (!radeon_mst)
+		return 0;
+
 	if (dig_connector->dpcd[DP_DPCD_REV] < 0x12)
 		return 0;
 
-- 
2.1.0



More information about the dri-devel mailing list