|
@@ -1895,6 +1895,8 @@ void __init setup_per_cpu_areas(void)
|
|
fc = __alloc_bootmem(unit_size, PAGE_SIZE, __pa(MAX_DMA_ADDRESS));
|
|
fc = __alloc_bootmem(unit_size, PAGE_SIZE, __pa(MAX_DMA_ADDRESS));
|
|
if (!ai || !fc)
|
|
if (!ai || !fc)
|
|
panic("Failed to allocate memory for percpu areas.");
|
|
panic("Failed to allocate memory for percpu areas.");
|
|
|
|
+ /* kmemleak tracks the percpu allocations separately */
|
|
|
|
+ kmemleak_free(fc);
|
|
|
|
|
|
ai->dyn_size = unit_size;
|
|
ai->dyn_size = unit_size;
|
|
ai->unit_size = unit_size;
|
|
ai->unit_size = unit_size;
|