lkml.org 
[lkml]   [2013]   [Jul]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH v2] mm: module_alloc: check if size is 0
Date
Joe Perches <joe@perches.com> writes:
> On Thu, 2013-06-27 at 15:23 -0700, Andrew Morton wrote:
>> On Thu, 27 Jun 2013 11:39:17 +0200 Ralf Baechle <ralf@linux-mips.org> wrote:
> []
>> Veli-Pekka's original patch would be neater if we were to add a new
>>
>> void *__vmalloc_node_range_zero_size_ok(<args>)
>> {
>> if (size == 0)
>> return NULL;
>
> I believe you mean
> return ZERO_SIZE_PTR;

Yes, this is the Right Fix.

Thanks,
Rusty.


\
 
 \ /
  Last update: 2013-07-01 11:21    [W:0.054 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site