efi: Accept version 2 of memory attributes table
authorArd Biesheuvel <ardb@kernel.org>
Thu, 2 Feb 2023 17:30:06 +0000 (18:30 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Thu, 2 Feb 2023 17:32:25 +0000 (18:32 +0100)
commit636ab417a7aec4ee993916e688eb5c5977570836
tree38746293a91ccc50632cab161bb13e1177c6fc90
parente1fabbc83cb1dd4ba63932faa86c9cacb8bf791e
efi: Accept version 2 of memory attributes table

UEFI v2.10 introduces version 2 of the memory attributes table, which
turns the reserved field into a flags field, but is compatible with
version 1 in all other respects. So let's not complain about version 2
if we encounter it.

Cc: <stable@vger.kernel.org>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/memattr.c