From: Gonglei Date: Tue, 7 Oct 2014 08:00:37 +0000 (+0800) Subject: bootindex: delete bootindex when device is removed X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=4aca8a817813f44e379d21b471c1d4136804814d;p=qmiga%2Fqemu.git bootindex: delete bootindex when device is removed Device should be removed from global boot list when it is hot-unplugged. Signed-off-by: Gonglei Reviewed-by: Gerd Hoffmann Signed-off-by: Gerd Hoffmann --- diff --git a/bootdevice.c b/bootdevice.c index 79c2327142..56b19529b1 100644 --- a/bootdevice.c +++ b/bootdevice.c @@ -225,6 +225,8 @@ static void property_release_bootindex(Object *obj, const char *name, { BootIndexProperty *prop = opaque; + + del_boot_device_path(prop->dev, prop->suffix); g_free(prop); }