mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
Qcow2 corruption fix, by Juergen Keil.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2578 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
0475a5ca54
commit
a4080ece74
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue