]> git.proxmox.com Git - qemu.git/commit
qcow2: Always use error path on writing snapshots
authorMax Reitz <mreitz@redhat.com>
Wed, 9 Oct 2013 08:51:04 +0000 (10:51 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 11 Oct 2013 14:49:59 +0000 (16:49 +0200)
commit37d41f0a04e5017d37906728a806d7944e867a2a
tree88691cba4cbbd2073fab239749c43152b1f59d4d
parent8f730dd24edd2576ecbd596de7ea4361296b129c
qcow2: Always use error path on writing snapshots

qcow2_write_snapshots does contain a fail label and there is no reason
not to use it on some errors; therefore, we should always jump there on
error.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2-snapshot.c