diff options
| author | Kees Cook <[email protected]> | 2024-07-11 17:11:13 +0000 |
|---|---|---|
| committer | Ard Biesheuvel <[email protected]> | 2024-07-12 08:06:01 +0000 |
| commit | 4a2ebb082297f41803742729642961532e54079e (patch) | |
| tree | 518aa4fa1429af07a0db955b75234a0fdefaf838 /drivers/fpga/tests/fpga-bridge-test.c | |
| parent | efi: Rename efi_early_memdesc_ptr() to efi_memdesc_ptr() (diff) | |
| download | kernel-4a2ebb082297f41803742729642961532e54079e.tar.gz kernel-4a2ebb082297f41803742729642961532e54079e.zip | |
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: Kees Cook <[email protected]>
Signed-off-by: Ard Biesheuvel <[email protected]>
Diffstat (limited to 'drivers/fpga/tests/fpga-bridge-test.c')
0 files changed, 0 insertions, 0 deletions
