From 4e7395e84fc7534f6a6c6f3d5563e770501dbe2e Mon Sep 17 00:00:00 2001 From: Peter Lieven Date: Thu, 18 Jul 2013 10:37:32 +0200 Subject: [PATCH] block: fix bdrv_read_unthrottled() Signed-off-by: Peter Lieven Reviewed-by: Paolo Bonzini Signed-off-by: Stefan Hajnoczi --- block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }