]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
efi: Accept version 2 of memory attributes table
authorArd Biesheuvel <ardb@kernel.org>
Thu, 2 Feb 2023 17:30:06 +0000 (18:30 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Feb 2023 11:47:15 +0000 (12:47 +0100)
commitcc0bb6e47b574ef6cd009e74fadeebf780eba3c4
tree62de7ebc1352680db28338e6c7ade49e002c0648
parente94cdb781358bf744f027b2a1b37f6fd6b602169
efi: Accept version 2 of memory attributes table

commit 636ab417a7aec4ee993916e688eb5c5977570836 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/firmware/efi/memattr.c