diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2020-03-13 19:20:52 +0300 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2020-03-18 18:52:36 +0300 |
commit | 5f706b4a3bd68e5982879bb60f7bb27698e759b3 (patch) | |
tree | 5c4f05c2726693bb54ba8c723df4ed614cda0aa8 /drivers/gpu/drm/drm_edid.c | |
parent | 8e88c75245a3f84e3503bff2fa39a9178e8efb5f (diff) | |
download | linux-5f706b4a3bd68e5982879bb60f7bb27698e759b3.tar.xz |
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: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200313162054.16009-8-ville.syrjala@linux.intel.com
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/drm_edid.c')
-rw-r--r-- | drivers/gpu/drm/drm_edid.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index 35d46f5ffb60..d86062d53a67 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c @@ -3222,7 +3222,8 @@ static u8 *drm_find_displayid_extension(const struct edid *edid, if (!displayid) return NULL; - *length = EDID_LENGTH; + /* EDID extensions block checksum isn't for us */ + *length = EDID_LENGTH - 1; *idx = 1; ret = validate_displayid(displayid, *length, *idx); |