mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
efi_loader: fix get_package_list_handle() status
When the HII protocol function get_package_list_handle() is called with an invalid package list handle, it returns EFI_NOT_FOUND but this is not in its list of possible status codes as per the EFI specification. Return EFI_INVALID_PARAMETER instead to fix 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: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
This commit is contained in:
parent
159dbe1fb1
commit
c33d389c7a
1 changed files with 1 additions and 1 deletions
|
@ -780,7 +780,7 @@ get_package_list_handle(const struct efi_hii_database_protocol *this,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return EFI_EXIT(EFI_NOT_FOUND);
|
return EFI_EXIT(EFI_INVALID_PARAMETER);
|
||||||
}
|
}
|
||||||
|
|
||||||
const struct efi_hii_database_protocol efi_hii_database = {
|
const struct efi_hii_database_protocol efi_hii_database = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue