Revision 0f853a38 hw/qdev.c
b/hw/qdev.c | ||
---|---|---|
749 | 749 |
|
750 | 750 |
opts = qemu_opts_parse(&qemu_device_opts, |
751 | 751 |
qdict_get_str(qdict, "config"), "driver"); |
752 |
if (opts && !qdev_device_help(opts)) |
|
753 |
qdev_device_add(opts); |
|
752 |
if (opts) { |
|
753 |
if (qdev_device_help(opts) || qdev_device_add(opts) == NULL) { |
|
754 |
qemu_opts_del(opts); |
|
755 |
} |
|
756 |
} |
|
754 | 757 |
} |
755 | 758 |
|
756 | 759 |
void do_device_del(Monitor *mon, const QDict *qdict) |
Also available in: Unified diff