:: commit 66fe9a7cce42d61a8744e8de3a9937c135ff808e

Mintsuki <mintsuki@protonmail.com> — 2026-02-16 10:10

parents: 38cebea808

drivers/vbe: Remove unnecessary EDID resolution bounds check

diff --git a/common/drivers/vbe.c b/common/drivers/vbe.c
index dc3bc39a..735d16bf 100644
--- a/common/drivers/vbe.c
+++ b/common/drivers/vbe.c
@@ -269,9 +269,7 @@ bool init_vbe(struct fb_info *ret,
                 edid_width  += ((int)edid_info->det_timing_desc1[4] & 0xf0) << 4;
             int edid_height  = (int)edid_info->det_timing_desc1[5];
                 edid_height += ((int)edid_info->det_timing_desc1[7] & 0xf0) << 4;
-            // Sanity check EDID values
-            if (edid_width > 0 && edid_width <= 16384 &&
-                edid_height > 0 && edid_height <= 16384) {
+            if (edid_width && edid_height) {
                 target_width  = edid_width;
                 target_height = edid_height;
                 target_bpp    = 32;
tab: 248 wrap: offon