From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Mon, 01 Jul 2013 10:53:08 +0200 (CEST) Received: from ozlabs.org ([203.10.76.45]:44589 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S6822972Ab3GAIxE70RXh (ORCPT ); Mon, 1 Jul 2013 10:53:04 +0200 Received: by ozlabs.org (Postfix, from userid 1011) id 2D1D42C0209; Mon, 1 Jul 2013 18:53:00 +1000 (EST) From: Rusty Russell To: Joe Perches , 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 Subject: Re: [PATCH v2] mm: module_alloc: check if size is 0 In-Reply-To: <1372373188.2060.32.camel@joe-AO722> 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> <1372373188.2060.32.camel@joe-AO722> User-Agent: Notmuch/0.15.2+81~gd2c8818 (http://notmuchmail.org) Emacs/23.4.1 (i686-pc-linux-gnu) Date: Mon, 01 Jul 2013 12:48:28 +0930 Message-ID: <87sizzrmrf.fsf@rustcorp.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 37237 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: rusty@rustcorp.com.au Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips Joe Perches writes: > 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; Yes, this is the Right Fix. Thanks, Rusty. From mboxrd@z Thu Jan 1 00:00:00 1970 From: rusty@rustcorp.com.au (Rusty Russell) Date: Mon, 01 Jul 2013 12:48:28 +0930 Subject: [PATCH v2] mm: module_alloc: check if size is 0 In-Reply-To: <1372373188.2060.32.camel@joe-AO722> 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> <1372373188.2060.32.camel@joe-AO722> Message-ID: <87sizzrmrf.fsf@rustcorp.com.au> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Joe Perches writes: > 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; Yes, this is the Right Fix. Thanks, Rusty.