diff options
author | Dan Carpenter <error27@gmail.com> | 2010-05-07 10:38:20 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-05-18 08:19:31 +0200 |
commit | 0ddfa7d574e0f3a7510b0be6c8ed807af017223f (patch) | |
tree | b2938cdaf656f0209c886c926330480927dcbb13 /drivers/gpu/drm/drm_edid.c | |
parent | vga16fb, drm: vga16fb->drm handoff (diff) | |
download | linux-0ddfa7d574e0f3a7510b0be6c8ed807af017223f.tar.xz linux-0ddfa7d574e0f3a7510b0be6c8ed807af017223f.zip |
drm: off by one in drm_edid.c
m == num_est3_modes is one past the end of the est3_modes[].
Signed-off-by: Dan Carpenter <error27@gmail.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_edid.c')
-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 326f28e04aab..0acb83a63727 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c @@ -1383,7 +1383,7 @@ drm_est3_modes(struct drm_connector *connector, struct detailed_timing *timing) for (i = 0; i < 6; i++) { for (j = 7; j > 0; j--) { m = (i * 8) + (7 - j); - if (m > num_est3_modes) + if (m >= num_est3_modes) break; if (est[i] & (1 << j)) { mode = drm_find_dmt(connector->dev, |