]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/VirtioFsDxe: Check GetDriverName arguments
authorDimitrije Pavlov <dimitrije.pavlov@arm.com>
Mon, 15 Aug 2022 16:31:19 +0000 (11:31 -0500)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 16 Aug 2022 20:52:19 +0000 (20:52 +0000)
commit3f282f451023234e16510516fbad20cd0ca04847
tree4477f132d72f0d8fa0dc595bad409bc29f529a2b
parentb94836b2241c16c74d70d7bb2ae478f7750655bc
OvmfPkg/VirtioFsDxe: Check GetDriverName arguments

The current implementation does not check if Language or DriverName
are NULL. This causes the SCT test suite to crash.

Add a check to return EFI_INVALID_PARAMETER if any of these pointers
are NULL.

Signed-off-by: Dimitrije Pavlov <Dimitrije.Pavlov@arm.com>
Reviewed-by: Sunny Wang <sunny.wang@arm.com>
OvmfPkg/VirtioFsDxe/DriverBinding.c