diff options
| author | Gonglei | 2014-10-07 10:00:37 +0200 |
|---|---|---|
| committer | Gerd Hoffmann | 2014-10-15 10:46:01 +0200 |
| commit | 4aca8a817813f44e379d21b471c1d4136804814d (patch) | |
| tree | 525999f589a8cf561fc4b1cab54f8f64464a9d00 /bootdevice.c | |
| parent | bootindex: move calling add_boot_device_patch to bootindex setter function (diff) | |
| download | qemu-4aca8a817813f44e379d21b471c1d4136804814d.tar.gz qemu-4aca8a817813f44e379d21b471c1d4136804814d.tar.xz qemu-4aca8a817813f44e379d21b471c1d4136804814d.zip | |
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.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |
