Received: from [140.186.70.92] (port=57766 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PJVh8-0006Wm-9K for qemu-devel@nongnu.org; Fri, 19 Nov 2010 13:28:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PJVh7-0005GF-5m for qemu-devel@nongnu.org; Fri, 19 Nov 2010 13:28:22 -0500 Received: from verein.lst.de ([213.95.11.210]:41683) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PJVh6-0005Fv-SA for qemu-devel@nongnu.org; Fri, 19 Nov 2010 13:28:21 -0500 Date: Fri, 19 Nov 2010 19:28:17 +0100 From: Christoph Hellwig Subject: Re: [Qemu-devel] [PATCH 01/16] Allow zero alloc_hint in qemu_sglist_init() Message-ID: <20101119182817.GB32461@lst.de> References: <20101118144434.3B68DF90AB@ochil.suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20101118144434.3B68DF90AB@ochil.suse.de> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Hannes Reinecke Cc: stefanha@gmail.com, qemu-devel@nongnu.org, nab@linux-iscsi.org, kraxel@redhat.com On Thu, Nov 18, 2010 at 03:44:34PM +0100, Hannes Reinecke wrote: > > qemu_malloc doesn't check for zero argument, so we need to > check ourselves. I'm not sure if it's a that good idea to remove the implicit ->sg != NULL assumption. Any reason you can't simply call qemu_sglist_init later?