mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-06-09 23:36:03 +09:00
efi_loader: SetMode() parameters check
If EFI_GRAPHICS_OUTPUT_PROTOCOL.SetMode() is called with an invalid mode, return EFI_UNSUPPORTED. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
997c2ce5cf
commit
1f7a8b3389
|
@ -60,12 +60,14 @@ out:
|
|||
|
||||
static efi_status_t EFIAPI gop_set_mode(struct efi_gop *this, u32 mode_number)
|
||||
{
|
||||
efi_status_t ret = EFI_SUCCESS;
|
||||
|
||||
EFI_ENTRY("%p, %x", this, mode_number);
|
||||
|
||||
if (mode_number != 0)
|
||||
return EFI_EXIT(EFI_INVALID_PARAMETER);
|
||||
if (mode_number)
|
||||
ret = EFI_UNSUPPORTED;
|
||||
|
||||
return EFI_EXIT(EFI_SUCCESS);
|
||||
return EFI_EXIT(ret);
|
||||
}
|
||||
|
||||
static __always_inline struct efi_gop_pixel efi_vid16_to_blt_col(u16 vid)
|
||||
|
|
Loading…
Reference in New Issue
Block a user