]> Git Repo - qemu.git/commit
qdev: skip bus check for bus-less devices in qdev_unplug()
authorIgor Mammedov <[email protected]>
Fri, 3 May 2013 13:25:36 +0000 (15:25 +0200)
committerAnthony Liguori <[email protected]>
Fri, 3 May 2013 17:05:33 +0000 (12:05 -0500)
commit120dc38f6113b676ecef0a2c9e42fc08cace5bdb
tree43491d62cb03c0377396d7772fe7771339b2d48c
parent6f32a6b47ef4247ad14dad63c6ee231fdce4c5e9
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 <[email protected]>
Message-id: 1367587536[email protected]
Signed-off-by: Anthony Liguori <[email protected]>
hw/core/qdev.c
This page took 0.025816 seconds and 4 git commands to generate.