]> xenbits.xensource.com Git - libvirt.git/commit
virStorageSourceNew: Abort on failure
authorPeter Krempa <pkrempa@redhat.com>
Tue, 22 Sep 2020 09:04:17 +0000 (11:04 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 23 Sep 2020 20:37:56 +0000 (22:37 +0200)
commitbc3a78f61a2aaac32d594e9dd2305046c829b5de
tree7c536862e9989935dc9ca71257dda01100e828d9
parent9c6996124f4ef1635fbfe47090dadaf5a12b42e9
virStorageSourceNew: Abort on failure

Add an abort() on the class/object allocation failures so that
virStorageSourceNew() always returns a virStorageSource and remove
checks from all callers.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
14 files changed:
src/conf/backup_conf.c
src/conf/domain_conf.c
src/conf/snapshot_conf.c
src/conf/storage_conf.c
src/qemu/qemu_domain.c
src/qemu/qemu_driver.c
src/qemu/qemu_migration.c
src/qemu/qemu_snapshot.c
src/storage/storage_backend_gluster.c
src/storage/storage_backend_logical.c
src/storage/storage_util.c
src/util/virstoragefile.c
tests/qemublocktest.c
tests/virstoragetest.c