Message ID | 20100629025847.5917.6239.malone@potassium.ubuntu.com |
---|---|
State | New |
Headers | show |
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);
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) {