From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lwwdy-0005T6-Dx for qemu-devel@nongnu.org; Thu, 23 Apr 2009 06:59:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lwwds-0005JB-FO for qemu-devel@nongnu.org; Thu, 23 Apr 2009 06:59:00 -0400 Received: from [199.232.76.173] (port=60928 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lwwds-0005J0-9E for qemu-devel@nongnu.org; Thu, 23 Apr 2009 06:58:56 -0400 Received: from verein.lst.de ([213.95.11.210]:58060) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1Lwwdr-0008LJ-Nl for qemu-devel@nongnu.org; Thu, 23 Apr 2009 06:58:56 -0400 Received: from verein.lst.de (localhost [127.0.0.1]) by verein.lst.de (8.12.3/8.12.3/Debian-7.1) with ESMTP id n3NAwpIF028128 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Thu, 23 Apr 2009 12:58:51 +0200 Received: (from hch@localhost) by verein.lst.de (8.12.3/8.12.3/Debian-6.6) id n3NAwpHG028126 for qemu-devel@nongnu.org; Thu, 23 Apr 2009 12:58:51 +0200 Date: Thu, 23 Apr 2009 12:58:51 +0200 From: Christoph Hellwig Message-ID: <20090423105851.GA28089@lst.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH] fix virtio_blk_inhdr comment List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org The inhdr is at the end of the S/G list, not the beginning. Signed-off-by: Christoph Hellwig Index: qemu/hw/virtio-blk.h =================================================================== --- qemu.orig/hw/virtio-blk.h 2009-03-31 21:07:20.245130677 +0200 +++ qemu/hw/virtio-blk.h 2009-03-31 21:07:31.004008986 +0200 @@ -64,7 +64,7 @@ struct virtio_blk_outhdr #define VIRTIO_BLK_S_IOERR 1 #define VIRTIO_BLK_S_UNSUPP 2 -/* This is the first element of the write scatter-gather list */ +/* This is the last element of the write scatter-gather list */ struct virtio_blk_inhdr { unsigned char status;