lkml.org 
[lkml]   [1998]   [Jun]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 2.1.105 MASSIVE memory leak (mmap_104-patch)
Michael L. Galbraith wrote:

> The leaked memory seems to be 'extra' from the mmap_104-patch. Reversing
> the patch cleared the leak.
>
> + /*
> + * We need at least one vma, and may need an extra one if we
> + * unmap a hole. Get them now before acquiring the semaphore.
> + */
> + error = -ENOMEM;
> + vma = kmem_cache_alloc(vm_area_cachep, SLAB_KERNEL);
> + if (!vma)
> + goto out;
> + extra = kmem_cache_alloc(vm_area_cachep, SLAB_KERNEL);
> + /* (allocation will be checked later) */
> +

Hi Mike,

Ahh, good work in tracking that down. I must have left an exit case unchecked -- will fix it right away.

Regards,
Bill




-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:43    [W:1.613 / U:0.456 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site