diff options
| author | Anthony Liguori <aliguori@us.ibm.com> | 2010-09-20 13:22:20 -0500 |
|---|---|---|
| committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-09-20 13:22:20 -0500 |
| commit | a287916c712b0c57a97cd35c663c5e7ba061bc7e (patch) | |
| tree | 1da4220aa8614ccded81277a807b8aba7e1b90ea /hw/vhost_net.c | |
| parent | 952afb719f3c965bae12b5bd5f0f0f7ed0251cb8 (diff) | |
| parent | 78aeb23eded2d0b765bf9145c71f80025b568acd (diff) | |
| download | focaccia-qemu-a287916c712b0c57a97cd35c663c5e7ba061bc7e.tar.gz focaccia-qemu-a287916c712b0c57a97cd35c663c5e7ba061bc7e.zip | |
Merge remote branch 'mst/for_anthony' into staging
Diffstat (limited to 'hw/vhost_net.c')
| -rw-r--r-- | hw/vhost_net.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/vhost_net.c b/hw/vhost_net.c index 4a7b8194f2..c068be1f54 100644 --- a/hw/vhost_net.c +++ b/hw/vhost_net.c @@ -151,7 +151,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); } |