summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/radeon_ms_output.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/shared-core/radeon_ms_output.c b/shared-core/radeon_ms_output.c
index 4d6cb01e..35e5c376 100644
--- a/shared-core/radeon_ms_output.c
+++ b/shared-core/radeon_ms_output.c
@@ -164,6 +164,10 @@ static int radeon_ms_output_get_modes(struct drm_output *output)
if (connector == NULL || connector->i2c == NULL) {
return 0;
}
+ if (connector->edid == NULL) {
+ return 0;
+ }
+ drm_mode_output_update_edid_property(output, connector->edid);
ret = drm_add_edid_modes(output, connector->edid);
kfree(connector->edid);
connector->edid = NULL;