Re: [PATCH 1/3] x86/numa_emulation: fix potential memory leak
From: David Rientjes
Date: Mon Apr 10 2017 - 20:16:38 EST
On Tue, 11 Apr 2017, Wei Yang wrote:
> numa_emulation() needs to allocate a space for phys_dist[] temporarily,
> while current code may miss to release this when dfl_phys_nid ==
> NUMA_NO_NODE. It is observed in code review instead of in a real case.
>
> This patch fixes this by re-order the code path.
>
> Signed-off-by: Wei Yang <richard.weiyang@xxxxxxxxx>
Acked-by: David Rientjes <rientjes@xxxxxxxxxx>