summaryrefslogtreecommitdiffstats
path: root/pc-bios
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2010-05-28 12:21:27 +0200
committerKevin Wolf <kwolf@redhat.com>2010-05-28 13:29:16 +0200
commit86fa8da83771238de55dc44819a1a27bafef5353 (patch)
treecd890a555fd8217c6ac6d8b33e5221bc1aa24447 /pc-bios
parent25408c09502be036e5575754fe54019ed4ed5dfa (diff)
downloadhqemu-86fa8da83771238de55dc44819a1a27bafef5353.zip
hqemu-86fa8da83771238de55dc44819a1a27bafef5353.tar.gz
qcow2: Fix corruption after error in update_refcount
After it is done with updating refcounts in the cache, update_refcount writes all changed entries to disk. If a refcount block allocation fails, however, there was no change yet and therefore first_index = last_index = -1. Don't treat -1 as a normal sector index (resulting in a 512 byte write!) but return without updating anything in this case. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'pc-bios')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud