mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
efi_loader: optional pointer for ConvertPointer
If the EFI_OPTIONAL_PTR is set in DebugDisposition, a NULL pointer does not constitute an invalid parameter. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
@@ -512,6 +512,12 @@ efi_convert_pointer(efi_uintn_t debug_disposition, void **address)
|
||||
ret = EFI_INVALID_PARAMETER;
|
||||
goto out;
|
||||
}
|
||||
if (!*address) {
|
||||
if (debug_disposition & EFI_OPTIONAL_PTR)
|
||||
return EFI_SUCCESS;
|
||||
else
|
||||
return EFI_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
addr = (uintptr_t)*address;
|
||||
for (i = 0; i < efi_descriptor_count; i++) {
|
||||
|
Reference in New Issue
Block a user