:: commit f92bec05349e90528bed3040686ba3c745cc5dfb

Mintsuki <mintsuki@protonmail.com> — 2026-01-12 11:15

parents: e7a4c17658

gop: Fix mode count mismatch in get_mode_list()

diff --git a/common/drivers/gop.c b/common/drivers/gop.c
index 3973cc3c..e10d1d60 100644
--- a/common/drivers/gop.c
+++ b/common/drivers/gop.c
@@ -167,7 +167,7 @@ static struct fb_info *get_mode_list(size_t *count, EFI_GRAPHICS_OUTPUT_PROTOCOL
     pmm_free(ret, modes_count * sizeof(struct fb_info));
     ret = tmp;
 
-    *count = modes_count;
+    *count = actual_count;
     return ret;
 }
 
tab: 248 wrap: offon