Commit 5f706b4a authored by Ville Syrjälä's avatar Ville Syrjälä

drm/edid: Don't include ext block csum in DispID size

The EDID extension block checksum byte is not part of the
actual DispID data, so don't use it in validate_displayid().
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200313162054.16009-8-ville.syrjala@linux.intel.comReviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 8e88c752
...@@ -3222,7 +3222,8 @@ static u8 *drm_find_displayid_extension(const struct edid *edid, ...@@ -3222,7 +3222,8 @@ static u8 *drm_find_displayid_extension(const struct edid *edid,
if (!displayid) if (!displayid)
return NULL; return NULL;
*length = EDID_LENGTH; /* EDID extensions block checksum isn't for us */
*length = EDID_LENGTH - 1;
*idx = 1; *idx = 1;
ret = validate_displayid(displayid, *length, *idx); ret = validate_displayid(displayid, *length, *idx);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment