X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=mm%2Fpercpu.c;h=8cd4308471c3ab6e7ce88f00c011f5ed4948b39f;hb=d540b168908615f1382b7eb3dfa12f95fc79bba0;hp=036cfe07050f65eee962f51e6223321f9e01e132;hpb=2ad48ee810335bdd99de96e1a0796ba34c0e8301;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git diff --git a/mm/percpu.c b/mm/percpu.c index 036cfe0..8cd4308 100644 --- a/mm/percpu.c +++ b/mm/percpu.c @@ -612,7 +612,7 @@ static struct pcpu_chunk *pcpu_alloc_chunk(void) chunk->map = pcpu_mem_zalloc(PCPU_DFL_MAP_ALLOC * sizeof(chunk->map[0])); if (!chunk->map) { - kfree(chunk); + pcpu_mem_free(chunk, pcpu_chunk_struct_size); return NULL; } @@ -1917,6 +1917,8 @@ void __init setup_per_cpu_areas(void) if (pcpu_setup_first_chunk(ai, fc) < 0) panic("Failed to initialize percpu areas."); + + pcpu_free_alloc_info(ai); } #endif /* CONFIG_SMP */