]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/PlatformDxe: Check RouteConfig arguments for spec compliance
authorYuan Yu <yuanyu@google.com>
Wed, 24 Aug 2022 02:31:23 +0000 (19:31 -0700)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 5 Sep 2022 13:52:51 +0000 (13:52 +0000)
commit165b5bcd68e2c563f93f8f5121d20efeab939a6a
treed172d3b915d532abb1cda0197992ab6eabdd388f
parente61f3f4ef13ab96746518ca238b42bdc9e00affe
OvmfPkg/PlatformDxe: Check RouteConfig arguments for spec compliance

Per UEFI Spec 2.9, EFI_HII_CONFIG_ROUTING_PROTOCOL.RouteConfig()
should return EFI_INVALID_PARAMETER if caller passes in a NULL for
the Configuration parameter (see 35.4 EFI HII Configuration Routing
Protocol).

Add a check to return EFI_INVALID_PARAMETER when Configuration is NULL.

Signed-off-by: Yuan Yu <yuanyu@google.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
OvmfPkg/PlatformDxe/Platform.c