Re: [PATCH] Fix memory leak in inet_hashtables.h when NUMA is on
On Fri, Nov 23, 2007 at 07:13:11PM +0300, Pavel Emelyanov wrote: > The inet_ehash_locks_alloc() looks like this: > > #ifdef CONFIG_NUMA > if (size > PAGE_SIZE) > x = vmalloc(...); > else > #endif > x = kmalloc(...); > > Unlike it, the inet_ehash_locks_alloc
[PATCH] Fix memory leak in inet_hashtables.h when NUMA is on
The inet_ehash_locks_alloc() looks like this: #ifdef CONFIG_NUMA if (size > PAGE_SIZE) x = vmalloc(...); else #endif x = kmalloc(...); Unlike it, the inet_ehash_locks_alloc() looks like this: #ifdef CONFIG_NUMA if (size > PAGE_SIZE)