]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - mm/percpu.c
kmemleak: Fix the kmemleak tracking of the percpu areas with !SMP
[mv-sheeva.git] / mm / percpu.c
index ac5c626b44a9ae1868e996f5545f61bd7c2f8707..bb4be7435ce34bad95f11c5bb59c435aba38f64f 100644 (file)
@@ -1895,6 +1895,8 @@ void __init setup_per_cpu_areas(void)
        fc = __alloc_bootmem(unit_size, PAGE_SIZE, __pa(MAX_DMA_ADDRESS));
        if (!ai || !fc)
                panic("Failed to allocate memory for percpu areas.");
+       /* kmemleak tracks the percpu allocations separately */
+       kmemleak_free(fc);
 
        ai->dyn_size = unit_size;
        ai->unit_size = unit_size;