aboutsummaryrefslogtreecommitdiff
path: root/bootdevice.c
diff options
context:
space:
mode:
authorGonglei <arei.gonglei@huawei.com>2014-10-07 16:00:37 +0800
committerGerd Hoffmann <kraxel@redhat.com>2014-10-15 10:46:01 +0200
commit4aca8a817813f44e379d21b471c1d4136804814d (patch)
tree525999f589a8cf561fc4b1cab54f8f64464a9d00 /bootdevice.c
parentd749e10c4f97a0239180215c6d7d18712361a430 (diff)
downloadqemu-4aca8a817813f44e379d21b471c1d4136804814d.zip
qemu-4aca8a817813f44e379d21b471c1d4136804814d.tar.gz
qemu-4aca8a817813f44e379d21b471c1d4136804814d.tar.bz2
bootindex: delete bootindex when device is removed
Device should be removed from global boot list when it is hot-unplugged. Signed-off-by: Gonglei <arei.gonglei@huawei.com> Reviewed-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'bootdevice.c')
-rw-r--r--bootdevice.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bootdevice.c b/bootdevice.c
index 79c2327..56b1952 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);
}