From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54222) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrY7P-0002bR-IT for qemu-devel@nongnu.org; Wed, 28 Oct 2015 17:18:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZrY7O-0004ZI-Tg for qemu-devel@nongnu.org; Wed, 28 Oct 2015 17:18:51 -0400 Date: Wed, 28 Oct 2015 23:18:42 +0200 From: "Michael S. Tsirkin" Message-ID: <1446067047-9262-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH] fixup! dataplane: support non-contigious s/g List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Igor Mammedov , qemu-block@nongnu.org, Stefan Hajnoczi Should fix issues Stefan reported. --- Built only. hw/virtio/dataplane/vring.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/virtio/dataplane/vring.c b/hw/virtio/dataplane/vring.c index 9ae9424..23f667e 100644 --- a/hw/virtio/dataplane/vring.c +++ b/hw/virtio/dataplane/vring.c @@ -261,8 +261,8 @@ static int get_desc(Vring *vring, VirtQueueElement *elem, /* The MemoryRegion is looked up again and unref'ed later, leave the * ref in place. */ - iov->iov_len = len; - *addr = desc->addr; + (iov++)->iov_len = len; + *addr++ = desc->addr; desc->len -= len; desc->addr += len; *num += 1; -- MST