aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2016-01-29 16:36:09 +0100
committerMax Reitz <mreitz@redhat.com>2016-02-02 17:50:46 +0100
commit938abd4325951f94e87765b7daea61bf0bf71a5e (patch)
treeff329468e5252975e6cff923286fcf0cef129251
parent13855c6b9fa7f9d9e6d1f90377be0f678671073a (diff)
downloadqemu-938abd4325951f94e87765b7daea61bf0bf71a5e.zip
qemu-938abd4325951f94e87765b7daea61bf0bf71a5e.tar.gz
qemu-938abd4325951f94e87765b7daea61bf0bf71a5e.tar.bz2
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>
-rw-r--r--blockdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/blockdev.c b/blockdev.c
index 1044a6a..09d4621 100644
--- a/blockdev.c
+++ b/blockdev.c
@@ -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