From: Jesper Juhl <juhl-lkml@dif.dk>
To: Andrew Morton <akpm@osdl.org>
Cc: Jesper Juhl <juhl-lkml@dif.dk>,
linux-kernel@vger.kernel.org, mingo@redhat.com,
arjan@infradead.org, ecashin@noserose.net, greg@kroah.com,
axboe@suse.de
Subject: Re: [PATCH] make mempool_destroy resilient against NULL pointers.
Date: Sat, 9 Apr 2005 03:46:17 +0200 (CEST) [thread overview]
Message-ID: <Pine.LNX.4.62.0504090345070.2455@dragon.hyggekrogen.localhost> (raw)
In-Reply-To: <20050408184121.0a498a3d.akpm@osdl.org>
On Fri, 8 Apr 2005, Andrew Morton wrote:
> Jesper Juhl <juhl-lkml@dif.dk> wrote:
> >
> >
> > General rule (as I understand it) is that functions that free resources
> > should handle being passed NULL pointers - mempool_destroy() will
> > currently explode if passed a NULL pointer, the patch below makes it safe
> > to pass it NULL.
>
> The best response to mempool_destroy(0) is an oops. There's no legitimate
> reason for doing it.
>
Ok, ignore the patch then.
--
Jesper
next prev parent reply other threads:[~2005-04-09 1:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-09 1:41 Jesper Juhl
2005-04-09 1:41 ` Andrew Morton
2005-04-09 1:46 ` Jesper Juhl [this message]
2005-04-24 1:32 ` Jesper Juhl
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=Pine.LNX.4.62.0504090345070.2455@dragon.hyggekrogen.localhost \
--to=juhl-lkml@dif.dk \
--cc=akpm@osdl.org \
--cc=arjan@infradead.org \
--cc=axboe@suse.de \
--cc=ecashin@noserose.net \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
/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
all inboxes | Powered by JetHome®