diff options
author | Arvind Sankar <nivedita@alum.mit.edu> | 2020-11-10 19:39:19 +0300 |
---|---|---|
committer | Ard Biesheuvel <ardb@kernel.org> | 2020-11-10 21:18:11 +0300 |
commit | c2fe61d8be491ff8188edaf22e838f819999146b (patch) | |
tree | 569101e67722981a5e78212c2840fabb5d4ade69 /drivers/gpu/drm/i915/i915_vgpu.c | |
parent | fe5186cf12e30facfe261e9be6c7904a170bd822 (diff) | |
download | linux-c2fe61d8be491ff8188edaf22e838f819999146b.tar.xz |
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 'drivers/gpu/drm/i915/i915_vgpu.c')
0 files changed, 0 insertions, 0 deletions