diff options
author | Markus Armbruster <armbru@redhat.com> | 2013-11-28 17:02:24 +0100 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2013-12-24 17:26:58 +0100 |
commit | 061e84f7a469ad1f94f3b5f6a5361b346ab990e8 (patch) | |
tree | d3142d1c66b0497a1e5f9a7a217d004c557985c3 /hw/i2c/smbus_eeprom.c | |
parent | 7ea5e78f3d8d64e99c4017ea211b7518f2629756 (diff) |
qdev-monitor: Avoid device_add crashing on non-device driver name
Watch this:
$ upstream-qemu -nodefaults -S -display none -monitor stdio
QEMU 1.7.50 monitor - type 'help' for more information
(qemu) device_add rng-egd
/work/armbru/qemu/qdev-monitor.c:491:qdev_device_add: Object 0x2089b00 is not an instance of type device
Aborted (core dumped)
Crashes because "rng-egd" exists, but isn't a subtype of TYPE_DEVICE.
Broken in commit 18b6dad.
Cc: qemu-stable@nongnu.org
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'hw/i2c/smbus_eeprom.c')
0 files changed, 0 insertions, 0 deletions