Qcow2 corruption fix, by Juergen Keil.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2578 c046a42c-6fe2-441c-8c8c-71466251a162
diff --git a/block-qcow2.c b/block-qcow2.c
index a876ea2..0f7a069 100644
--- a/block-qcow2.c
+++ b/block-qcow2.c
@@ -1933,6 +1933,7 @@
     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;