diff options
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/virtio_blk.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c index 84e064ffee52..c4804f3465db 100644 --- a/drivers/block/virtio_blk.c +++ b/drivers/block/virtio_blk.c | |||
@@ -311,6 +311,7 @@ static void virtblk_remove(struct virtio_device *vdev) | |||
311 | /* Stop all the virtqueues. */ | 311 | /* Stop all the virtqueues. */ |
312 | vdev->config->reset(vdev); | 312 | vdev->config->reset(vdev); |
313 | 313 | ||
314 | del_gendisk(vblk->disk); | ||
314 | blk_cleanup_queue(vblk->disk->queue); | 315 | blk_cleanup_queue(vblk->disk->queue); |
315 | put_disk(vblk->disk); | 316 | put_disk(vblk->disk); |
316 | mempool_destroy(vblk->pool); | 317 | mempool_destroy(vblk->pool); |