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>
This commit is contained in:
Peter Lieven 2013-07-18 10:37:32 +02:00 committed by Stefan Hajnoczi
parent 594a45ce64
commit 4e7395e84f
1 changed files with 1 additions and 1 deletions

View File

@ -2255,7 +2255,7 @@ int bdrv_read_unthrottled(BlockDriverState *bs, int64_t sector_num,
enabled = bs->io_limits_enabled; enabled = bs->io_limits_enabled;
bs->io_limits_enabled = false; 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; bs->io_limits_enabled = enabled;
return ret; return ret;
} }