Message ID | 1400859725-31879-4-git-send-email-stefanha@redhat.com |
---|---|
State | New |
Headers | show |
diff --git a/block/qcow2-cluster.c b/block/qcow2-cluster.c index 76d2bcf..4208dc0 100644 --- a/block/qcow2-cluster.c +++ b/block/qcow2-cluster.c @@ -379,7 +379,8 @@ static int coroutine_fn copy_sectors(BlockDriverState *bs, BLKDBG_EVENT(bs->file, BLKDBG_COW_READ); if (!bs->drv) { - return -ENOMEDIUM; + ret = -ENOMEDIUM; + goto out; } /* Call .bdrv_co_readv() directly instead of using the public block-layer