On 2026-11-01T07:01:22+11:00, Ana Bobillo <[email protected]> wrote:
> efi_loader: Index the GPT entries directly in tcg2_measure_gpt_data()
>
> tcg2_measure_gpt_data() now measures the GPT that part_get_gpt() gives,
> whose entries are always sizeof(gpt_entry) bytes, as
> validate_gpt_header() refuses any other size. So index them as an array
> rather than stepping by sizeof_partition_entry, and read
> num_partition_entries with le32_to_cpu(), as the rest of the GPT code
> does.
>
> No functional change on a little-endian machine.
>
> Suggested-by: Simon Glass <[email protected]>
> Signed-off-by: Ana Bobillo <[email protected]>
>
>  lib/efi_loader/efi_tcg2.c | 24 +++++++++---------------
>  1 file changed, 9 insertions(+), 15 deletions(-)

Reviewed-by: Simon Glass <[email protected]>

Reply via email to