diff options
author | Dimitrije Pavlov <dimitrije.pavlov@arm.com> | 2022-08-18 14:58:42 -0500 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2022-09-05 13:52:51 +0000 |
commit | aefcc91805fd69e4aad4bc08a9f708db11cae5f0 (patch) | |
tree | 21cae17d01ae6a051a08279a7ff05738b15f03cb /OvmfPkg/TdxDxe | |
parent | 165b5bcd68e2c563f93f8f5121d20efeab939a6a (diff) | |
download | edk2-aefcc91805fd69e4aad4bc08a9f708db11cae5f0.tar.gz edk2-aefcc91805fd69e4aad4bc08a9f708db11cae5f0.tar.bz2 edk2-aefcc91805fd69e4aad4bc08a9f708db11cae5f0.zip |
OvmfPkg/PlatformDxe: Handle all requests in ExtractConfig and RouteConfig
Per the UEFI specification, if the Request argument in
EFI_HII_CONFIG_ACCESS_PROTOCOL.ExtractConfig() is NULL or does not contain
any request elements, the implementation should return all of the settings
being abstracted for the particular ConfigHdr reference.
The current implementation returns EFI_INVALID_PARAMETER if Request is
NULL or does not contain any request elements. Instead, construct
a new ConfigRequest to handle these cases per the specification.
In addition, per the UEFI specification, if the Configuration argument in
EFI_HII_CONFIG_ACCESS_PROTOCOL.RouteConfig() has a ConfigHdr that
specifies a non-existing target, the implementation should return
EFI_NOT_FOUND.
The current implementation returns EFI_INVALID_PARAMETER if Configuration
has a non-existing target in ConfigHdr. Instead, perform a check and
return EFI_NOT_FOUND in this case.
Signed-off-by: Dimitrije Pavlov <Dimitrije.Pavlov@arm.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'OvmfPkg/TdxDxe')
0 files changed, 0 insertions, 0 deletions