diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2012-04-18 17:24:01 -0300 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2012-06-04 13:49:34 -0300 |
commit | 4e89978e2021c0431aad9898823eb9d3526e9018 (patch) | |
tree | 2bc9c129629d5b88c1e911589223cd13fe860e2f /net.c | |
parent | 384f2139ff681cd3c26de365417cff46c186b5f0 (diff) | |
download | qemu-4e89978e2021c0431aad9898823eb9d3526e9018.zip qemu-4e89978e2021c0431aad9898823eb9d3526e9018.tar.gz qemu-4e89978e2021c0431aad9898823eb9d3526e9018.tar.bz2 |
qemu-option: qemu_opts_from_qdict(): use error_set()
do_device_add() and do_netdev_add() call qerror_report_err() to maintain
their QError semantics.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Reviewed-By: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'net.c')
-rw-r--r-- | net.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1237,11 +1237,14 @@ void net_host_device_remove(Monitor *mon, const QDict *qdict) int do_netdev_add(Monitor *mon, const QDict *qdict, QObject **ret_data) { + Error *local_err = NULL; QemuOpts *opts; int res; - opts = qemu_opts_from_qdict(qemu_find_opts("netdev"), qdict); + opts = qemu_opts_from_qdict(qemu_find_opts("netdev"), qdict, &local_err); if (!opts) { + qerror_report_err(local_err); + error_free(local_err); return -1; } |