We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c7095d commit a01c477Copy full SHA for a01c477
drivers/gpu/drm/drm_modes.c
@@ -1611,7 +1611,13 @@ int drm_mode_convert_umode(struct drm_device *dev,
1611
out->vscan = in->vscan;
1612
out->vrefresh = in->vrefresh;
1613
out->flags = in->flags;
1614
- out->type = in->type;
+ /*
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;
1621
strncpy(out->name, in->name, DRM_DISPLAY_MODE_LEN);
1622
out->name[DRM_DISPLAY_MODE_LEN-1] = 0;
1623
0 commit comments