diff options
| author | Igor Mammedov <imammedo@redhat.com> | 2013-05-03 15:25:36 +0200 |
|---|---|---|
| committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-05-03 12:05:33 -0500 |
| commit | 120dc38f6113b676ecef0a2c9e42fc08cace5bdb (patch) | |
| tree | 43491d62cb03c0377396d7772fe7771339b2d48c /scripts/qapi-types.py | |
| parent | 6f32a6b47ef4247ad14dad63c6ee231fdce4c5e9 (diff) | |
| download | focaccia-qemu-120dc38f6113b676ecef0a2c9e42fc08cace5bdb.tar.gz focaccia-qemu-120dc38f6113b676ecef0a2c9e42fc08cace5bdb.zip | |
qdev: skip bus check for bus-less devices in qdev_unplug()
Since commit 2f7bd829db "qdev: Fix device_add bus assumptions" it's possible to device_add bus-less device, but if such device is unplugged it will dereference NULL parent_bus in qdev_unplug(). Fix it by taking in account that parent_bus might be NULL and skipping bus check. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Message-id: 1367587536-14964-1-git-send-email-imammedo@redhat.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'scripts/qapi-types.py')
0 files changed, 0 insertions, 0 deletions