mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-17 18:34:42 +00:00
efi_loader: refine set_keyboard_layout() status
As per the EFI specification, the HII database protocol function set_keyboard_layout() must return EFI_INVALID_PARAMETER when it is called with a NULL key_guid argument. Modify the function accordingly to improve conformance. Signed-off-by: Vincent Stehlé <vincent.stehle@arm.com> Cc: Heinrich Schuchardt <xypron.glpk@gmx.de> Cc: Ilias Apalodimas <ilias.apalodimas@linaro.org> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
This commit is contained in:
parent
851456693a
commit
65b91a346e
1 changed files with 3 additions and 0 deletions
|
@ -758,6 +758,9 @@ set_keyboard_layout(const struct efi_hii_database_protocol *this,
|
|||
{
|
||||
EFI_ENTRY("%p, %pUs", this, key_guid);
|
||||
|
||||
if (!key_guid)
|
||||
return EFI_EXIT(EFI_INVALID_PARAMETER);
|
||||
|
||||
return EFI_EXIT(EFI_NOT_FOUND);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue