Skip to content
Commit 4a2ebb08 authored by Kees Cook's avatar Kees Cook Committed by Ard Biesheuvel
Browse files

efi: Replace efi_memory_attributes_table_t 0-sized array with flexible array



While efi_memory_attributes_table_t::entry isn't used directly as an
array, it is used as a base for pointer arithmetic. The type is wrong
as it's not technically an array of efi_memory_desc_t's; they could be
larger. Regardless, leave the type unchanged and remove the old style
"0" array size. Additionally replace the open-coded entry offset code
with the existing efi_memdesc_ptr() helper.

Signed-off-by: default avatarKees Cook <kees@kernel.org>
Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
parent 887c4cf5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment