aboutsummaryrefslogtreecommitdiff
path: root/hw/shpc.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/shpc.c')
-rw-r--r--hw/shpc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/shpc.c b/hw/shpc.c
index a5baf24..6b9884d 100644
--- a/hw/shpc.c
+++ b/hw/shpc.c
@@ -253,6 +253,7 @@ static void shpc_free_devices_in_slot(SHPCDevice *shpc, int slot)
++devfn) {
PCIDevice *affected_dev = shpc->sec_bus->devices[devfn];
if (affected_dev) {
+ object_unparent(OBJECT(affected_dev));
qdev_free(&affected_dev->qdev);
}
}