aboutsummaryrefslogtreecommitdiff
path: root/block.c
diff options
context:
space:
mode:
authorPeter Lieven <pl@kamp.de>2013-07-18 10:37:32 +0200
committerStefan Hajnoczi <stefanha@redhat.com>2013-07-19 12:29:22 +0800
commit4e7395e84fc7534f6a6c6f3d5563e770501dbe2e (patch)
treead442f834fe0bd180b466273a8a6d280c3907272 /block.c
parent594a45ce64dbef1829996403506a1154eb2fd1cc (diff)
block: fix bdrv_read_unthrottled()
Signed-off-by: Peter Lieven <pl@kamp.de> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'block.c')
-rw-r--r--block.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block.c b/block.c
index b05e2d6ce9..6cd39fa146 100644
--- a/block.c
+++ b/block.c
@@ -2255,7 +2255,7 @@ int bdrv_read_unthrottled(BlockDriverState *bs, int64_t sector_num,
enabled = bs->io_limits_enabled;
bs->io_limits_enabled = false;
- ret = bdrv_read(bs, 0, buf, 1);
+ ret = bdrv_read(bs, sector_num, buf, nb_sectors);
bs->io_limits_enabled = enabled;
return ret;
}