aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/drm_modes.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c
index f6b7c0e36a1a..e82b61e08f8c 100644
--- a/drivers/gpu/drm/drm_modes.c
+++ b/drivers/gpu/drm/drm_modes.c
@@ -1611,7 +1611,13 @@ int drm_mode_convert_umode(struct drm_device *dev,
1611 out->vscan = in->vscan; 1611 out->vscan = in->vscan;
1612 out->vrefresh = in->vrefresh; 1612 out->vrefresh = in->vrefresh;
1613 out->flags = in->flags; 1613 out->flags = in->flags;
1614 out->type = in->type; 1614 /*
1615 * Old xf86-video-vmware (possibly others too) used to
1616 * leave 'type' unititialized. Just ignore any bits we
1617 * don't like. It's a just hint after all, and more
1618 * useful for the kernel->userspace direction anyway.
1619 */
1620 out->type = in->type & DRM_MODE_TYPE_ALL;
1615 strncpy(out->name, in->name, DRM_DISPLAY_MODE_LEN); 1621 strncpy(out->name, in->name, DRM_DISPLAY_MODE_LEN);
1616 out->name[DRM_DISPLAY_MODE_LEN-1] = 0; 1622 out->name[DRM_DISPLAY_MODE_LEN-1] = 0;
1617 1623