diff options
author | Paul Parsons <lost.distance@yahoo.com> | 2016-03-26 13:18:38 +0000 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2016-04-05 11:15:44 +0300 |
commit | f3a32d74ef733e1ed1a0b804c17ec27081e0ff37 (patch) | |
tree | ff5e55d68d99c64224a1fb9668c578d27e933716 | |
parent | 87707cfdc387681dc702f00dfcffc26ca0bc5f71 (diff) | |
download | linux-f3a32d74ef733e1ed1a0b804c17ec27081e0ff37.tar.bz2 |
drm/edid: Fix parsing of EDID 1.4 Established Timings III descriptor
The EDID 1.4 specification section 3.10.3.9 defines an Established Timings III
descriptor (tag #F7h). The parsing of this descriptor by drm_est3_modes() is
off by one byte: the offset of the first timing bitmap is 6, not 5.
Signed-off-by: Paul Parsons <lost.distance@yahoo.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20160328002258.E75DF6E35D@gabe.freedesktop.org
-rw-r--r-- | drivers/gpu/drm/drm_edid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index 94541187c62a..c33edb0f23b2 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c @@ -2241,7 +2241,7 @@ drm_est3_modes(struct drm_connector *connector, struct detailed_timing *timing) { int i, j, m, modes = 0; struct drm_display_mode *mode; - u8 *est = ((u8 *)timing) + 5; + u8 *est = ((u8 *)timing) + 6; for (i = 0; i < 6; i++) { for (j = 7; j >= 0; j--) { |