lkml.org 
[lkml]   [2012]   [Jan]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] module: avoid call vmalloc if init size is zero
Date
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.


\
 
 \ /
  Last update: 2012-01-30 09:07    [from the cache]
©2003-2011 Jasper Spaans