From: Johannes Berg <johannes@sipsolutions.net>
To: Christoph Lameter <clameter@sgi.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [RFC] fix slub krealloc()
Date: Thu, 26 Jul 2007 16:08:46 +0200 [thread overview]
Message-ID: <1185458926.4006.12.camel@johannes.berg> (raw)
In-Reply-To: <Pine.LNX.4.64.0707251153050.8731@schroedinger.engr.sgi.com>
[-- Attachment #1: Type: text/plain, Size: 442 bytes --]
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 #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 190 bytes --]
prev parent reply other threads:[~2007-07-26 14:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-18 15:42 [RFC] fix slub krealloc() Johannes Berg
2007-07-23 20:32 ` Christoph Lameter
2007-07-23 20:47 ` Andrew Morton
2007-07-23 21:37 ` Christoph Lameter
2007-07-25 8:40 ` Johannes Berg
2007-07-25 18:53 ` Christoph Lameter
2007-07-26 14:08 ` Johannes Berg [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1185458926.4006.12.camel@johannes.berg \
--to=johannes@sipsolutions.net \
--cc=akpm@linux-foundation.org \
--cc=clameter@sgi.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox