Re: [RFC] fix slub krealloc()

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

 



On Wed, 2007-07-25 at 11:53 -0700, Christoph Lameter wrote:

> It will give you a ZERO_SIZE_PTR
> 
> void *krealloc(const void *p, size_t new_size, gfp_t flags)
> {
>         void *ret;
>         size_t ks;
> 
>         if (unlikely(!new_size)) {
>                 kfree(p);
>                 return ZERO_SIZE_PTR;
>         }

Oh, I thought looked and it returned NULL. Did it change or did I just
look wrong? :)

johannes

Attachment: signature.asc
Description: This is a digitally signed message part


[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