Received: from eggs.gnu.org ([2001:4830:134:3::10]:37284) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ys0x4-0004hy-Bd for qemu-devel@nongnu.org; Mon, 11 May 2015 23:33:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ys0x0-0003xJ-By for qemu-devel@nongnu.org; Mon, 11 May 2015 23:33:50 -0400 Date: Tue, 12 May 2015 11:33:40 +0800 From: Fam Zheng Message-ID: <20150512033340.GA2007@ad.nay.redhat.com> References: <1430794275-1316-1-git-send-email-famz@redhat.com> <1430794275-1316-3-git-send-email-famz@redhat.com> <20150511144309.GG16270@stefanha-thinkpad.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150511144309.GG16270@stefanha-thinkpad.redhat.com> Subject: Re: [Qemu-devel] [Qemu-block] [PATCH v5 2/3] block: Fix NULL deference for unaligned write if qiov is NULL List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: pbonzini@redhat.com, Stefan Hajnoczi , qemu-devel@nongnu.org, qemu-block@nongnu.org, qemu-stable@nongnu.org On Mon, 05/11 15:43, Stefan Hajnoczi wrote: > On Tue, May 05, 2015 at 10:51:14AM +0800, Fam Zheng wrote: > > This function is complex. I had to draw a diagram to remember the > relationships between the variables. It would be nice to split it if > that can be done in a way that makes the code nicer. OK. I can split zero write to a separate function.