Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754479Ab3F0Wqb (ORCPT ); Thu, 27 Jun 2013 18:46:31 -0400 Received: from perches-mx.perches.com ([206.117.179.246]:36624 "EHLO labridge.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754073Ab3F0Wqa (ORCPT ); Thu, 27 Jun 2013 18:46:30 -0400 Message-ID: <1372373188.2060.32.camel@joe-AO722> Subject: Re: [PATCH v2] mm: module_alloc: check if size is 0 From: Joe Perches To: Andrew Morton Cc: Ralf Baechle , Veli-Pekka Peltola , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@linux-mips.org, Russell King , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Peter Zijlstra , Rusty Russell Date: Thu, 27 Jun 2013 15:46:28 -0700 In-Reply-To: <20130627152335.c3a4c9f4c647cf4a2b263479@linux-foundation.org> References: <1330631119-10059-1-git-send-email-veli-pekka.peltola@bluegiga.com> <1331125768-25454-1-git-send-email-veli-pekka.peltola@bluegiga.com> <20130627093917.GQ7171@linux-mips.org> <20130627152335.c3a4c9f4c647cf4a2b263479@linux-foundation.org> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.6.4-0ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 591 Lines: 19 On Thu, 2013-06-27 at 15:23 -0700, Andrew Morton wrote: > On Thu, 27 Jun 2013 11:39:17 +0200 Ralf Baechle wrote: [] > Veli-Pekka's original patch would be neater if we were to add a new > > void *__vmalloc_node_range_zero_size_ok() > { > if (size == 0) > return NULL; I believe you mean return ZERO_SIZE_PTR; -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/