From: Andrew Morton <akpm@osdl.org>
To: Jesper Juhl <juhl-lkml@dif.dk>
Cc: 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: Fri, 8 Apr 2005 18:41:21 -0700 [thread overview]
Message-ID: <20050408184121.0a498a3d.akpm@osdl.org> (raw)
In-Reply-To: <Pine.LNX.4.62.0504090334490.2455@dragon.hyggekrogen.localhost>
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.
next prev parent reply other threads:[~2005-04-09 1:41 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 [this message]
2005-04-09 1:46 ` Jesper Juhl
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=20050408184121.0a498a3d.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=arjan@infradead.org \
--cc=axboe@suse.de \
--cc=ecashin@noserose.net \
--cc=greg@kroah.com \
--cc=juhl-lkml@dif.dk \
--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®