diff options
| -rw-r--r-- | drivers/gpu/drm/drm_edid.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index ca9c61656714..6f6b26479d82 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c | |||
| @@ -289,6 +289,11 @@ static struct drm_display_mode *drm_mode_detailed(struct drm_device *dev, | |||
| 289 | struct drm_display_mode *mode; | 289 | struct drm_display_mode *mode; |
| 290 | struct detailed_pixel_timing *pt = &timing->data.pixel_data; | 290 | struct detailed_pixel_timing *pt = &timing->data.pixel_data; |
| 291 | 291 | ||
| 292 | /* ignore tiny modes */ | ||
| 293 | if (((pt->hactive_hi << 8) | pt->hactive_lo) < 64 || | ||
| 294 | ((pt->vactive_hi << 8) | pt->hactive_lo) < 64) | ||
| 295 | return NULL; | ||
| 296 | |||
| 292 | if (pt->stereo) { | 297 | if (pt->stereo) { |
| 293 | printk(KERN_WARNING "stereo mode not supported\n"); | 298 | printk(KERN_WARNING "stereo mode not supported\n"); |
| 294 | return NULL; | 299 | return NULL; |
