aboutsummaryrefslogtreecommitdiff
path: root/block-qcow2.c
diff options
context:
space:
mode:
Diffstat (limited to 'block-qcow2.c')
-rw-r--r--block-qcow2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/block-qcow2.c b/block-qcow2.c
index a876ea2e2d..0f7a06961e 100644
--- a/block-qcow2.c
+++ b/block-qcow2.c
@@ -1933,6 +1933,7 @@ static int grow_refcount_table(BlockDriverState *bs, int min_size)
qemu_free(s->refcount_table);
s->refcount_table = new_table;
s->refcount_table_size = new_table_size;
+ s->refcount_table_offset = table_offset;
update_refcount(bs, table_offset, new_table_size2, 1);
return 0;