blockdev: Use blk_remove_bs() in do_drive_del()

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
Max Reitz 2016-01-29 16:36:09 +01:00
parent 13855c6b9f
commit 938abd4325
1 changed files with 1 additions and 1 deletions

View File

@ -2792,7 +2792,7 @@ void hmp_drive_del(Monitor *mon, const QDict *qdict)
return;
}
bdrv_close(bs);
blk_remove_bs(blk);
}
/* if we have a device attached to this BlockDriverState