diff --git a/block/io.c b/block/io.c index 8f38d46de008297f6ea453da38f0d17c21ae5dbb..2709a7007fb0e23367a9e8a5b09853fa3f6eb8d8 100644 --- a/block/io.c +++ b/block/io.c @@ -1760,7 +1760,7 @@ static int64_t coroutine_fn bdrv_co_get_block_status(BlockDriverState *bs, if (ret & BDRV_BLOCK_RAW) { assert(ret & BDRV_BLOCK_OFFSET_VALID); - ret = bdrv_get_block_status(bs->file->bs, ret >> BDRV_SECTOR_BITS, + ret = bdrv_get_block_status(*file, ret >> BDRV_SECTOR_BITS, *pnum, pnum, file); goto out; }