lkml.org 
[lkml]   [2007]   [Jul]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC] fix slub krealloc()
From
Date
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
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2007-07-26 16:13    [W:0.037 / U:1.308 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site