summaryrefslogtreecommitdiffstats
path: root/fs/afs
diff options
context:
space:
mode:
authorArvind Sankar <nivedita@alum.mit.edu>2020-11-10 11:39:19 -0500
committerArd Biesheuvel <ardb@kernel.org>2020-11-10 19:18:11 +0100
commitc2fe61d8be491ff8188edaf22e838f819999146b (patch)
tree569101e67722981a5e78212c2840fabb5d4ade69 /fs/afs
parentfe5186cf12e30facfe261e9be6c7904a170bd822 (diff)
downloadlinux-c2fe61d8be491ff8188edaf22e838f819999146b.tar.bz2
efi/x86: Free efi_pgd with free_pages()
Commit d9e9a6418065 ("x86/mm/pti: Allocate a separate user PGD") changed the PGD allocation to allocate PGD_ALLOCATION_ORDER pages, so in the error path it should be freed using free_pages() rather than free_page(). Commit 06ace26f4e6f ("x86/efi: Free efi_pgd with free_pages()") fixed one instance of this, but missed another. Move the freeing out-of-line to avoid code duplication and fix this bug. Fixes: d9e9a6418065 ("x86/mm/pti: Allocate a separate user PGD") Link: https://lore.kernel.org/r/20201110163919.1134431-1-nivedita@alum.mit.edu Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu> Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'fs/afs')
0 files changed, 0 insertions, 0 deletions