From: Gonglei Date: Tue, 7 Oct 2014 08:00:37 +0000 (+0800) Subject: bootindex: delete bootindex when device is removed X-Git-Tag: qemu-xen-4.6.0-rc1~131^2~1 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=4aca8a817813f44e379d21b471c1d4136804814d;p=qemu-upstream-4.6-testing.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 79c232714..56b19529b 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); }