Skip to content

Commit 636ab41

Browse files
committed
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>
1 parent e1fabbc commit 636ab41

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/firmware/efi/memattr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ int __init efi_memattr_init(void)
3333
return -ENOMEM;
3434
}
3535

36-
if (tbl->version > 1) {
36+
if (tbl->version > 2) {
3737
pr_warn("Unexpected EFI Memory Attributes table version %d\n",
3838
tbl->version);
3939
goto unmap;

0 commit comments

Comments
 (0)