qdev: Fix -device and device_add to handle unsuitable bus gracefully
commit327867b62a121a93ab1e8e9278eba2cd44eee650
authorMarkus Armbruster <armbru@redhat.com>
Fri, 19 Feb 2010 18:08:45 +0000 (19 19:08 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 16 Mar 2010 15:58:32 +0000 (16 16:58 +0100)
treec46385cc743836e94501673bcc8d41c67c5c012b
parent0f0bc3f1d526924ef4a75ad25dd0ec3771a66496
qdev: Fix -device and device_add to handle unsuitable bus gracefully

"device_add isa-serial,bus=pci.0" kills QEMU.  Not good.
hw/qdev.c