[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [6845] qemu:virtio-net: Check return size on the correct sg
From: |
Anthony Liguori |
Subject: |
[Qemu-devel] [6845] qemu:virtio-net: Check return size on the correct sg list ( Alex Williamson) |
Date: |
Fri, 13 Mar 2009 15:04:03 +0000 |
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 <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>
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);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [6845] qemu:virtio-net: Check return size on the correct sg list ( Alex Williamson),
Anthony Liguori <=