qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v9 30/30] bootindex: delete bootindex when device is


From: arei.gonglei
Subject: [Qemu-devel] [PATCH v9 30/30] bootindex: delete bootindex when device is removed
Date: Wed, 10 Sep 2014 20:31:26 +0800

From: Gonglei <address@hidden>

Device should be removed from global boot list when
it is hot-unplugged.

Signed-off-by: Gonglei <address@hidden>
---
 bootdevice.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/bootdevice.c b/bootdevice.c
index ae6ab4a..d69ab73 100644
--- a/bootdevice.c
+++ b/bootdevice.c
@@ -245,6 +245,8 @@ static void property_release_bootindex(Object *obj, const 
char *name,
 
 {
     BootIndexProperty *prop = opaque;
+
+    del_boot_device_path(prop->dev);
     g_free(prop);
 }
 
-- 
1.7.12.4





reply via email to

[Prev in Thread] Current Thread [Next in Thread]