Re: [RFC PATCH v3 2/2] mm/percpu.c: fix potential memory leakage for pcpu_embed_first_chunk()
From: Tejun Heo
Date: Wed Oct 05 2016 - 11:56:04 EST
On Wed, Oct 05, 2016 at 09:30:24PM +0800, zijun_hu wrote:
> From: zijun_hu <zijun_hu@xxxxxxx>
>
> in order to ensure the percpu group areas within a chunk aren't
> distributed too sparsely, pcpu_embed_first_chunk() goes to error handling
> path when a chunk spans over 3/4 VMALLOC area, however, during the error
> handling, it forget to free the memory allocated for all percpu groups by
> going to label @out_free other than @out_free_areas.
Applied 1-2 to percpu/for-4.9.
Thanks for the persistence!
--
tejun