summaryrefslogtreecommitdiffstats
path: root/target-ppc
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2011-11-16 12:43:59 +0100
committerKevin Wolf <kwolf@redhat.com>2011-12-05 14:51:36 +0100
commitd1ea98d56dc2485b4637a1ca19feef786b3aee8f (patch)
treee2f7b247199b3f261b696af7e3f55ae34cca8044 /target-ppc
parent03343166f703d5c8f02b8519f8493c56e5541ae7 (diff)
downloadhqemu-d1ea98d56dc2485b4637a1ca19feef786b3aee8f.zip
hqemu-d1ea98d56dc2485b4637a1ca19feef786b3aee8f.tar.gz
qcow2: Rework qcow2_snapshot_create error handling
Increase refcounts only after allocating a new L1 table has succeeded in order to make leaks less likely. If writing the snapshot table fails, revert in-memory state to be consistent with that on disk. While at it, make it return the real error codes instead of -1. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'target-ppc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud