Patchwork [Bug,599617] Re: qemu fail to parse command "-net none"

login
register
mail settings
Submitter Hao, Xudong
Date June 29, 2010, 2:58 a.m.
Message ID <20100629025847.5917.6239.malone@potassium.ubuntu.com>
Download mbox | patch
Permalink /patch/57239/
State New
Headers show

Comments

Hao, Xudong - June 29, 2010, 2:58 a.m.
qemu upstream has fix patch:

Signed-off-by: Amit Shah <amit.shah@redhat.com>
---
 net.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

                 if (ret < 0) {

Patch

diff --git a/net.c b/net.c
index 4cb93ed..b681233 100644
--- a/net.c
+++ b/net.c
@@ -1119,7 +1119,7 @@  int net_client_init(Monitor *mon, QemuOpts *opts, int 
is_netdev)
                 vlan = qemu_find_vlan(qemu_opt_get_number(opts, "vlan", 0), 1);
             }
 
-            ret = -1;
+            ret = 0;
             if (net_client_types[i].init) {
                 ret = net_client_types[i].init(opts, mon, name, vlan);