projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31ad7f8
)
x86/efi: Free efi_pgd with free_pages()
author
Waiman Long
<
[email protected]
>
Thu, 22 Mar 2018 19:18:53 +0000
(15:18 -0400)
committer
Thomas Gleixner
<
[email protected]
>
Fri, 23 Mar 2018 19:18:31 +0000
(20:18 +0100)
The efi_pgd is allocated as PGD_ALLOCATION_ORDER pages and therefore must
also be freed as PGD_ALLOCATION_ORDER pages with free_pages().
Fixes: d9e9a6418065 ("x86/mm/pti: Allocate a separate user PGD")
Signed-off-by: Waiman Long <
[email protected]
>
Signed-off-by: Thomas Gleixner <
[email protected]
>
Cc:
[email protected]
Cc: Dave Hansen <
[email protected]
>
Cc: Ard Biesheuvel <
[email protected]
>
Cc:
[email protected]
Link:
https://lkml.kernel.org/r/
[email protected]
arch/x86/platform/efi/efi_64.c
patch
|
blob
|
history
diff --git
a/arch/x86/platform/efi/efi_64.c
b/arch/x86/platform/efi/efi_64.c
index c310a82843589c6df238e72061b037de42b22867..f9cfbc0d1f337e63b9a744cdb423ba2ecd6712f8 100644
(file)
--- a/
arch/x86/platform/efi/efi_64.c
+++ b/
arch/x86/platform/efi/efi_64.c
@@
-227,7
+227,7
@@
int __init efi_alloc_page_tables(void)
if (!pud) {
if (CONFIG_PGTABLE_LEVELS > 4)
free_page((unsigned long) pgd_page_vaddr(*pgd));
- free_page
((unsigned long)efi_pgd
);
+ free_page
s((unsigned long)efi_pgd, PGD_ALLOCATION_ORDER
);
return -ENOMEM;
}