diff options
author | Tom Rini <trini@konsulko.com> | 2024-05-01 19:39:45 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-05-01 19:39:45 -0600 |
commit | 3132b7982af501f7f62f7b2c7f89d00205de33d1 (patch) | |
tree | cd5b5ae2fd542e757e052f7beb6407bbf07ed8b5 /lib/efi_loader/efi_variable_tee.c | |
parent | ff0de1f0557ed7d2dab47ba976a37347a1fdc432 (diff) | |
parent | 8745f13fe102968f58a9e2e5f69ad153a675b59c (diff) |
Merge tag 'efi-2024-07-rc2' of https://source.denx.de/u-boot/custodians/u-boot-efi
Pull request efi-2024-07-rc2
Documentation:
* correct description of 'env print -e'
UEFI:
* remove superfluous efi_restore_gd after EFI_CALL
* terminate efidebug test bootmgr early on error
* do not install device-tree if bootmgr fails
* pass GUID by address to efi_dp_from_lo
* remove dead code in efi_var_mem_init()
* enable QueryVariableInfo at runtime for file backed variables
Diffstat (limited to 'lib/efi_loader/efi_variable_tee.c')
-rw-r--r-- | lib/efi_loader/efi_variable_tee.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/efi_loader/efi_variable_tee.c b/lib/efi_loader/efi_variable_tee.c index 4f1aa298da1..8b6b0a39086 100644 --- a/lib/efi_loader/efi_variable_tee.c +++ b/lib/efi_loader/efi_variable_tee.c @@ -873,6 +873,11 @@ efi_status_t efi_query_variable_info_int(u32 attributes, efi_status_t ret; u8 *comm_buf; + if (!max_variable_storage_size || + !remain_variable_storage_size || + !max_variable_size || !attributes) + return EFI_INVALID_PARAMETER; + payload_size = sizeof(*mm_query_info); comm_buf = setup_mm_hdr((void **)&mm_query_info, payload_size, SMM_VARIABLE_FUNCTION_QUERY_VARIABLE_INFO, |