Re: [PATCH v2 1/1] workqueue: Fix possible memory leaks in wq_numa_init()

From: Tejun Heo
Date: Thu Jul 29 2021 - 13:24:17 EST


On Thu, Jul 22, 2021 at 11:03:52AM +0800, Zhen Lei wrote:
> In error handling branch "if (WARN_ON(node == NUMA_NO_NODE))", the
> previously allocated memories are not released. Doing this before
> allocating memory eliminates memory leaks.
>
> Signed-off-by: Zhen Lei <thunder.leizhen@xxxxxxxxxx>

Applied to wq/for-5.15.

Thanks.

--
tejun