]> git.proxmox.com Git - qemu.git/commit - qdev-monitor.c
qdev: Fix device_add bus assumptions
authorAndreas Färber <afaerber@suse.de>
Tue, 16 Apr 2013 01:50:21 +0000 (03:50 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 16 Apr 2013 21:10:21 +0000 (16:10 -0500)
commit2f7bd829dbaf39eb14706c3e889f28b795e050ca
treeb9dddf8fa75bbc06d0018eafeb111fbb8bfb5c94
parentacbbc036619092fcd2c882222e1be168bd972b3e
qdev: Fix device_add bus assumptions

Drop an unreachable fallback bus assignment to SysBus.

If no ,bus= is specified, only search busses recursively for bus type if
the DeviceClass has a bus_type specified. Handle resulting NULL cases.

Signed-off-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Message-id: 1366077021-28882-1-git-send-email-afaerber@suse.de
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qdev-monitor.c