Re: [PATCH] percpu: Fix memory leak from percpu_init_late()

From: Tejun Heo
Date: Thu Aug 19 2010 - 10:52:19 EST


On 08/19/2010 04:49 PM, Catalin Marinas wrote:
> The chunk->map memory block allocated in percpu_init_late() (as of
> commit 099a19d9) is later overridden in pcpu_extend_area_map(). The
> patch frees this existing block in the latter function. Found by
> kmemleak.
>
> Signed-off-by: Catalin Marinas <catalin.marinas@xxxxxxx>
> Cc: Tejun Heo <tj@xxxxxxxxxx>

Patch already pending

http://git.kernel.org/?p=linux/kernel/git/tj/percpu.git;a=commit;h=206c53730b8b1707becca7a868ea8d14ebee24d2

Thanks.

--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/