gop: Fix mode count mismatch in get_mode_list()

This commit is contained in:
Mintsuki 2026-01-12 12:15:02 +01:00
parent e7a4c17658
commit f92bec0534
No known key found for this signature in database
GPG Key ID: 1F3C021BECA23821

View File

@ -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;
}