summaryrefslogtreecommitdiff
path: root/common/edid.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/edid.c')
-rw-r--r--common/edid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/edid.c b/common/edid.c
index 854d40c..3d0809a 100644
--- a/common/edid.c
+++ b/common/edid.c
@@ -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;