summaryrefslogtreecommitdiff
path: root/qstring.c
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2010-05-12 16:23:26 +0200
committerKevin Wolf <kwolf@redhat.com>2010-05-28 13:14:25 +0200
commit175e11526e2613b3dc031c23fec3107aa4a80307 (patch)
tree1a917b28794d81f2ea98eded2e11340ed531c5d4 /qstring.c
parent1b7c801b40ce90795397bb566d019c9b76ef9c13 (diff)
downloadqemu-175e11526e2613b3dc031c23fec3107aa4a80307.tar.gz
qcow2: Fix error handling in l2_allocate
l2_allocate has some intermediate states in which the image is inconsistent. Change the order to write to the L1 table only after the new L2 table has successfully been initialized. Also reset the L2 cache in failure case, it's very likely wrong. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qstring.c')
0 files changed, 0 insertions, 0 deletions