Re: [Qemu-devel] [PATCH] net: delete QemuOpts when net_client_init() fails.

2010-06-21 Thread Markus Armbruster
Yoshiaki Tamura writes: > This fixes the following scenario using QMP. > > First, put a bogus argument "foo" to "type", which results in an error. > {"execute": "netdev_add", "arguments": { "type": "foo", "id": "netdev1" } } > Then, call it again with correct argument "user". > {"execute": "netde

[Qemu-devel] [PATCH] net: delete QemuOpts when net_client_init() fails.

2010-06-20 Thread Yoshiaki Tamura
This fixes the following scenario using QMP. First, put a bogus argument "foo" to "type", which results in an error. {"execute": "netdev_add", "arguments": { "type": "foo", "id": "netdev1" } } Then, call it again with correct argument "user". {"execute": "netdev_add", "arguments": { "type": "user"