]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Use virBufferCheckError everywhere we report OOM error
authorJán Tomko <jtomko@redhat.com>
Fri, 27 Jun 2014 08:40:15 +0000 (10:40 +0200)
committerJán Tomko <jtomko@redhat.com>
Thu, 3 Jul 2014 08:48:14 +0000 (10:48 +0200)
commit92a8e72f9de5b4c435f66fd68cfde623225f13ba
treeffe327eedd0aee6fd2e59f3f27375e6ebcfa9200
parent28b9be2481a7993bdeabc77296dc775e41cafa01
Use virBufferCheckError everywhere we report OOM error

Replace:
if (virBufferError(&buf)) {
    virBufferFreeAndReset(&buf);
    virReportOOMError();
    ...
}

with:
if (virBufferCheckError(&buf) < 0)
    ...

This should not be a functional change (unless some callers
misused the virBuffer APIs - a different error would be reported
then)
51 files changed:
src/bhyve/bhyve_driver.c
src/conf/cpu_conf.c
src/conf/domain_conf.c
src/conf/interface_conf.c
src/conf/network_conf.c
src/conf/node_device_conf.c
src/conf/nwfilter_conf.c
src/conf/secret_conf.c
src/conf/snapshot_conf.c
src/conf/storage_conf.c
src/cpu/cpu_map.c
src/cpu/cpu_x86.c
src/esx/esx_driver.c
src/esx/esx_util.c
src/esx/esx_vi.c
src/esx/esx_vi_methods.c
src/hyperv/hyperv_wmi.c
src/libxl/libxl_driver.c
src/locking/lock_driver_sanlock.c
src/lxc/lxc_controller.c
src/lxc/lxc_driver.c
src/network/bridge_driver.c
src/node_device/node_device_udev.c
src/nwfilter/nwfilter_ebiptables_driver.c
src/nwfilter/nwfilter_gentech_driver.c
src/phyp/phyp_driver.c
src/qemu/qemu_command.c
src/qemu/qemu_driver.c
src/qemu/qemu_migration.c
src/qemu/qemu_monitor.c
src/qemu/qemu_monitor_text.c
src/rpc/virnetsocket.c
src/rpc/virnetsshsession.c
src/storage/storage_backend.c
src/storage/storage_backend_rbd.c
src/uml/uml_conf.c
src/util/vircommand.c
src/util/virconf.c
src/util/virnetdevopenvswitch.c
src/util/virstoragefile.c
src/util/virstring.c
src/util/virsysinfo.c
src/util/virsystemd.c
src/util/viruri.c
src/vmx/vmx.c
src/xen/xen_driver.c
src/xen/xend_internal.c
src/xenapi/xenapi_utils.c
src/xenxs/xen_sxpr.c
src/xenxs/xen_xm.c
tests/domainsnapshotxml2xmltest.c