Commit 7d14b95f authored by Thomas Wood's avatar Thomas Wood Committed by Dave Airlie

drm/edid: fix length check when adding extra 3D modes

Signed-off-by: default avatarThomas Wood <thomas.wood@intel.com>
Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 1ec2c7fc
......@@ -2674,7 +2674,7 @@ static int add_3d_struct_modes(struct drm_connector *connector, u16 structure,
int modes = 0;
u8 cea_mode;
if (video_db == NULL || video_index > video_len)
if (video_db == NULL || video_index >= video_len)
return 0;
/* CEA modes are numbered 1..127 */
......
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