aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/setup_percpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/setup_percpu.c')
-rw-r--r--arch/x86/kernel/setup_percpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/setup_percpu.c b/arch/x86/kernel/setup_percpu.c
index 9c3f0823e6a..dfbc7e6c64d 100644
--- a/arch/x86/kernel/setup_percpu.c
+++ b/arch/x86/kernel/setup_percpu.c
@@ -228,7 +228,7 @@ static ssize_t __init setup_pcpu_remap(size_t static_size)
228enomem: 228enomem:
229 for_each_possible_cpu(cpu) 229 for_each_possible_cpu(cpu)
230 if (pcpur_ptrs[cpu]) 230 if (pcpur_ptrs[cpu])
231 free_bootmem(__pa(pcpur_ptrs[cpu]), PMD_SIZE); 231 free_bootmem(__pa(pcpur_ptrs[cpu]), pcpur_size);
232 ret = -ENOMEM; 232 ret = -ENOMEM;
233out_free_ar: 233out_free_ar:
234 free_bootmem(__pa(pcpur_ptrs), ptrs_size); 234 free_bootmem(__pa(pcpur_ptrs), ptrs_size);