Commit 938abd43 authored by Max Reitz's avatar Max Reitz
Browse files

blockdev: Use blk_remove_bs() in do_drive_del()



Signed-off-by: default avatarMax Reitz <mreitz@redhat.com>
Reviewed-by: default avatarKevin Wolf <kwolf@redhat.com>
Reviewed-by: default avatarFam Zheng <famz@redhat.com>
Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
parent 13855c6b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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