提交 7d14b95f 编写于 作者: T Thomas Wood 提交者: Dave Airlie

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

Signed-off-by: NThomas Wood <thomas.wood@intel.com>
Reviewed-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: NDave Airlie <airlied@redhat.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册