]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - common/edid.c
Merge git://git.denx.de/u-boot-i2c
[people/ms/u-boot.git] / common / edid.c
index 854d40c8f8b46817efdb251e026a3eaf1462749e..3d0809ad11c2d2e1ca615a9cac681233cb1e6dd5 100644 (file)
@@ -148,8 +148,8 @@ static bool cea_is_hdmi_vsdb_present(struct edid_cea861_info *info)
        /* check for end of data block */
        end = info->dtd_offset;
        if (end == 0)
-               end = 127;
-       if (end < 4 || end > 127)
+               end = sizeof(info->data);
+       if (end < 4 || end > sizeof(info->data))
                return false;
        end -= 4;