forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork0
Commitc2fe61d
efi/x86: Free efi_pgd with free_pages()
Commitd9e9a64 ("x86/mm/pti: Allocate a separate user PGD")changed the PGD allocation to allocate PGD_ALLOCATION_ORDER pages, so inthe error path it should be freed using free_pages() rather thanfree_page().Commit06ace26 ("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:d9e9a64 ("x86/mm/pti: Allocate a separate user PGD")Link:https://lore.kernel.org/r/20201110163919.1134431-1-nivedita@alum.mit.eduSigned-off-by: Arvind Sankar <nivedita@alum.mit.edu>Signed-off-by: Ard Biesheuvel <ardb@kernel.org>1 parentfe5186c commitc2fe61d
1 file changed
+13
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
| 85 | + | |
| 86 | + | |
89 | 87 | | |
90 | 88 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
| 89 | + | |
| 90 | + | |
97 | 91 | | |
98 | 92 | | |
99 | 93 | | |
100 | 94 | | |
101 | 95 | | |
102 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
103 | 105 | | |
104 | 106 | | |
105 | 107 | | |
| |||
0 commit comments
Comments
(0)