X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=mm%2Fpercpu.c;h=8cd4308471c3ab6e7ce88f00c011f5ed4948b39f;hb=e292d9ad60b820e49a6825a501461df7f527b8d8;hp=036cfe07050f65eee962f51e6223321f9e01e132;hpb=f568849edac8611d603e00bd6cbbcfea09395ae6;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 */