From ebd47b30273d55da8f26356c25fa96e6c4553174 Mon Sep 17 00:00:00 2001 From: Xianglai Li Date: Tue, 16 Sep 2025 15:07:25 +0800 Subject: [PATCH] hw/loongarch: Fix the issue of repeated release of cpu and memory objects Fix the issue of repeated release of cpu and memory objects Signed-off-by: Xianglai Li --- hw/loongarch/larch_hotplug.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/hw/loongarch/larch_hotplug.c b/hw/loongarch/larch_hotplug.c index bb3e9826b2..3dc5066489 100644 --- a/hw/loongarch/larch_hotplug.c +++ b/hw/loongarch/larch_hotplug.c @@ -112,7 +112,6 @@ static void loongarch_cpu_unplug(HotplugHandler *hotplug_dev, found_cpu = loongarch_find_cpu_slot(MACHINE(lsms), cpu->id, NULL); found_cpu->cpu = NULL; - object_unparent(OBJECT(dev)); lsms->hotpluged_cpu_num -= 1; out: error_propagate(errp, local_err); @@ -133,8 +132,6 @@ static void loongarch_memory_unplug(HotplugHandler *hotplug_dev, } pc_dimm_unplug(PC_DIMM(dev), MACHINE(hotplug_dev)); - object_unparent(OBJECT(dev)); - out: error_propagate(errp, local_err); } -- Gitee