projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1fabbc
)
efi: Accept version 2 of memory attributes table
author
Ard Biesheuvel
<ardb@kernel.org>
Thu, 2 Feb 2023 17:30:06 +0000
(18:30 +0100)
committer
Ard Biesheuvel
<ardb@kernel.org>
Thu, 2 Feb 2023 17:32:25 +0000
(18:32 +0100)
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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/firmware/efi/memattr.c
b/drivers/firmware/efi/memattr.c
index 0a9aba5f9ceff0bff6c4507382afe487378afcd1..f178b2984dfb2a1c7d8bf4d4e68299b1de8f4ae7 100644
(file)
--- a/
drivers/firmware/efi/memattr.c
+++ b/
drivers/firmware/efi/memattr.c
@@
-33,7
+33,7
@@
int __init efi_memattr_init(void)
return -ENOMEM;
}
- if (tbl->version >
1
) {
+ if (tbl->version >
2
) {
pr_warn("Unexpected EFI Memory Attributes table version %d\n",
tbl->version);
goto unmap;