Re: [PATCH] fix memory leak in mm/slab.c::alloc_kmemlist()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3/12/06, Andrew Morton <[email protected]> wrote:
> Jesper Juhl <[email protected]> wrote:
> >
> >
> > The Coverity checker found that we may leak memory in
> > mm/slab.c::alloc_kmemlist()
> > This should fix the leak and coverity bug #589
> >
[snip]
>
> It's more complicated than that.  We can also leak new_alien.  And if any
> allocation in that for_each_online_node() loop fails I guess we need to
> back out all the allocations we've done thus far, which means another loop.
> ug.
>
Ok, I'll take a second (and much more thorough) look at it tonight.
And I'll be sure to describe whatever changes I make and the reasoning
behind.


> Patches against rc6-mm1 would be preferred please, that code's changed
> quite a bit.
>
Sure thing.


--
Jesper Juhl <[email protected]>
Don't top-post  http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please      http://www.expita.com/nomime.html
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux