Commit a4080ece74523492856ac67e709a10675b080da0

Authored by ths
1 parent 0475a5ca

Qcow2 corruption fix, by Juergen Keil.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2578 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 0 deletions
block-qcow2.c
... ... @@ -1933,6 +1933,7 @@ static int grow_refcount_table(BlockDriverState *bs, int min_size)
1933 1933 qemu_free(s->refcount_table);
1934 1934 s->refcount_table = new_table;
1935 1935 s->refcount_table_size = new_table_size;
  1936 + s->refcount_table_offset = table_offset;
1936 1937  
1937 1938 update_refcount(bs, table_offset, new_table_size2, 1);
1938 1939 return 0;
... ...