qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [6845] qemu:virtio-net: Check return size on the correct sg list ( Alex Williamson)
@ 2009-03-13 15:04 Anthony Liguori
  0 siblings, 0 replies; only message in thread
From: Anthony Liguori @ 2009-03-13 15:04 UTC (permalink / raw)
  To: qemu-devel

Revision: 6845
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6845
Author:   aliguori
Date:     2009-03-13 15:04:02 +0000 (Fri, 13 Mar 2009)
Log Message:
-----------
qemu:virtio-net: Check return size on the correct sg list (Alex Williamson)

When checking that the size of the control virtqueue return field
is sufficient, use the correct sg list.

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

Modified Paths:
--------------
    trunk/hw/virtio-net.c

Modified: trunk/hw/virtio-net.c
===================================================================
--- trunk/hw/virtio-net.c	2009-03-13 15:03:58 UTC (rev 6844)
+++ trunk/hw/virtio-net.c	2009-03-13 15:04:02 UTC (rev 6845)
@@ -228,7 +228,7 @@
         }
 
         if (elem.out_sg[0].iov_len < sizeof(ctrl) ||
-            elem.out_sg[elem.in_num - 1].iov_len < sizeof(status)) {
+            elem.in_sg[elem.in_num - 1].iov_len < sizeof(status)) {
             fprintf(stderr, "virtio-net ctrl header not in correct element\n");
             exit(1);
         }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-03-13 15:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-13 15:04 [Qemu-devel] [6845] qemu:virtio-net: Check return size on the correct sg list ( Alex Williamson) Anthony Liguori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).