diff options
Diffstat (limited to 'block/cloop.c')
-rw-r--r-- | block/cloop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/cloop.c b/block/cloop.c index 9a23344..40b146e 100644 --- a/block/cloop.c +++ b/block/cloop.c @@ -222,7 +222,7 @@ static inline int cloop_read_block(BlockDriverState *bs, int block_num) ret = bdrv_pread(bs->file, s->offsets[block_num], bytes, s->compressed_block, 0); - if (ret != bytes) { + if (ret < 0) { return -1; } |