* grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
resolutions. * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise. * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
This commit is contained in:
parent
0d3d137e79
commit
6e5efd60a1
4 changed files with 16 additions and 5 deletions
|
@ -415,7 +415,8 @@ grub_video_edid_preferred_mode (struct grub_video_edid_info *edid_info,
|
|||
| (((unsigned int)
|
||||
(edid_info->detailed_timings[0].vertical_hi & 0xf0))
|
||||
<< 4);
|
||||
return GRUB_ERR_NONE;
|
||||
if (*width && *height)
|
||||
return GRUB_ERR_NONE;
|
||||
}
|
||||
|
||||
return grub_error (GRUB_ERR_BAD_DEVICE, "no preferred mode available");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue