linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rusty Russell <rusty@rustcorp.com.au>
To: Dmitry Antipov <dmitry.antipov@linaro.org>
Cc: linux-kernel@vger.kernel.org, linaro-dev@lists.linaro.org
Subject: Re: [PATCH] module: avoid call vmalloc if init size is zero
Date: Mon, 30 Jan 2012 18:24:18 +1030	[thread overview]
Message-ID: <878vkpmxqt.fsf@rustcorp.com.au> (raw)
In-Reply-To: <4F26468C.4000302@linaro.org>

On Mon, 30 Jan 2012 11:28:12 +0400, Dmitry Antipov <dmitry.antipov@linaro.org> wrote:
> On 01/27/2012 03:21 PM, Rusty Russell wrote:
> 
> > Please fix __vmalloc_node_range() instead to return ZERO_SIZE_PTR.
> > And of course, vfree() to use ZERO_OR_NULL_PTR().
> 
> For the convenience and uniformity, should {alloc,free}_percpu() be
> also modified in that way?

Yep!

Thanks,
Rusty.

      reply	other threads:[~2012-01-30  8:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-27  7:19 [PATCH] module: avoid call vmalloc if init size is zero Dmitry Antipov
2012-01-27 11:21 ` Rusty Russell
2012-01-30  7:28   ` Dmitry Antipov
2012-01-30  7:54     ` Rusty Russell [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=878vkpmxqt.fsf@rustcorp.com.au \
    --to=rusty@rustcorp.com.au \
    --cc=dmitry.antipov@linaro.org \
    --cc=linaro-dev@lists.linaro.org \
    --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;
as well as URLs for NNTP newsgroup(s).