Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 168867
b: refs/heads/master
c: 7064fef
h: refs/heads/master
i:
  168865: 4fc44f2
  168863: 8685233
v: v3
  • Loading branch information
Jesse Barnes authored and Dave Airlie committed Nov 24, 2009
1 parent e25cb59 commit ba46655
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0ebf17174b4bdd99ab81c476714c91ee335fdcbf
refs/heads/master: 7064fef56369c9e2c6e35ff6d6b4b63d42a859ce
6 changes: 6 additions & 0 deletions trunk/drivers/gpu/drm/drm_edid.c
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,12 @@ static struct drm_display_mode *drm_mode_detailed(struct drm_device *dev,
return NULL;
}

/* Some EDIDs have bogus h/vtotal values */
if (mode->hsync_end > mode->htotal)
mode->htotal = mode->hsync_end + 1;
if (mode->vsync_end > mode->vtotal)
mode->vtotal = mode->vsync_end + 1;

drm_mode_set_name(mode);

if (pt->misc & DRM_EDID_PT_INTERLACED)
Expand Down

0 comments on commit ba46655

Please sign in to comment.