aboutsummaryrefslogtreecommitdiffstats
path: root/block-qcow2.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-04-01 19:01:40 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-04-01 19:01:40 +0000
commita4080ece74523492856ac67e709a10675b080da0 (patch)
tree0672d06f6e12a8fe28217754c916e13f136c3456 /block-qcow2.c
parent0475a5ca544e3a59fb961f14342228aad1d0acb6 (diff)
Qcow2 corruption fix, by Juergen Keil.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2578 c046a42c-6fe2-441c-8c8c-71466251a162
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 a876ea2e2..0f7a06961 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;