aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2010-05-28 12:05:45 +0200
committerDoug Goldstein <cardoe@gentoo.org>2010-07-20 17:35:14 -0500
commitb422613ad5667f7a062121c354e795b197e9ed4c (patch)
tree35f4c307bdefce84337953da594cbed9a894e7cc /target-sh4
parentblock: Fix multiwrite with overlapping requests (diff)
downloadqemu-kvm-b422613ad5667f7a062121c354e795b197e9ed4c.tar.gz
qemu-kvm-b422613ad5667f7a062121c354e795b197e9ed4c.tar.bz2
qemu-kvm-b422613ad5667f7a062121c354e795b197e9ed4c.zip
qcow2: Fix corruption after refblock allocation
Refblock allocation code needs to take into consideration that update_refcount will load a different refcount block into the cache, so it must initialize the cache for a new refcount block only afterwards. Not doing this means that not only the refcount in the wrong block is updated, but also that the caller will work on the wrong block. Signed-off-by: Kevin Wolf <kwolf@redhat.com> (cherry picked from commit 25408c09502be036e5575754fe54019ed4ed5dfa)
Diffstat (limited to 'target-sh4')
0 files changed, 0 insertions, 0 deletions