| Submitter | Michael S. Tsirkin |
|---|---|
| Date | Sept. 14, 2010, 11:52 a.m. |
| Message ID | <20100914115222.GA703@redhat.com> |
| Download | mbox | patch |
| Permalink | /patch/64693/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/hw/vhost_net.c b/hw/vhost_net.c index 606aa0c..f2f4740 100644 --- a/hw/vhost_net.c +++ b/hw/vhost_net.c @@ -139,7 +139,7 @@ int vhost_net_start(struct vhost_net *net, return 0; fail: file.fd = -1; - while (--file.index >= 0) { + while (file.index-- > 0) { int r = ioctl(net->dev.control, VHOST_NET_SET_BACKEND, &file); assert(r >= 0); }