From 4aca8a817813f44e379d21b471c1d4136804814d Mon Sep 17 00:00:00 2001 From: Gonglei Date: Tue, 7 Oct 2014 16:00:37 +0800 Subject: 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 --- bootdevice.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bootdevice.c') 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); } -- cgit v1.2.3