Re: [PATCH] efistub/x86: Use struct_size() in preserve_pci_rom_image()

From: Javier Martinez Canillas

Date: Mon Nov 16 2026 - 06:26:57 EST


Thorsten Blum <blum@xxxxxxxxxx> writes:

Hello Thorsten,

> Use struct_size(), which provides additional compile-time checks for
> structures with flexible array members (e.g., __must_be_array()), to
> determine the ROM allocation size.
>
> Signed-off-by: Thorsten Blum <blum@xxxxxxxxxx>
> ---

Acked-by: Javier Martinez Canillas <javierm@xxxxxxxxxx>

--
Best regards,

Javier Martinez Canillas
Core Platforms
Red Hat