efi: Accept version 2 of memory attributes table
commit 636ab417a7
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
f6ea834e8d
commit
2035cfb958
@ -32,7 +32,7 @@ int __init efi_memattr_init(void)
|
|||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tbl->version > 1) {
|
if (tbl->version > 2) {
|
||||||
pr_warn("Unexpected EFI Memory Attributes table version %d\n",
|
pr_warn("Unexpected EFI Memory Attributes table version %d\n",
|
||||||
tbl->version);
|
tbl->version);
|
||||||
goto unmap;
|
goto unmap;
|
||||||
|
Reference in New Issue
Block a user