提交 e9adf260 编写于 作者: M Michael S. Tsirkin

shpc: unparent device before free

Recent core change removed unparent
so we need to do this in all callers now.
Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
上级 8cc9b43f
......@@ -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);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册