[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [6847] qemu:virtio-net: Check return size on the correct sg
From: |
Anthony Liguori |
Subject: |
[Qemu-devel] [6847] qemu:virtio-net: Check return size on the correct sg list ( Alex Williamson) |
Date: |
Fri, 13 Mar 2009 16:19:05 +0000 |
Revision: 6847
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6847
Author: aliguori
Date: 2009-03-13 16:19:04 +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:
--------------
branches/stable_0_10_0/hw/virtio-net.c
Modified: branches/stable_0_10_0/hw/virtio-net.c
===================================================================
--- branches/stable_0_10_0/hw/virtio-net.c 2009-03-13 16:18:57 UTC (rev
6846)
+++ branches/stable_0_10_0/hw/virtio-net.c 2009-03-13 16:19:04 UTC (rev
6847)
@@ -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] [6847] qemu:virtio-net: Check return size on the correct sg list ( Alex Williamson),
Anthony Liguori <=