]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: cpu hotplug: Fix error handling logic
authorPeter Krempa <pkrempa@redhat.com>
Thu, 29 Oct 2015 14:49:26 +0000 (15:49 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 9 Dec 2015 13:57:12 +0000 (14:57 +0100)
commit8cf65dabf2f14aee2aced27eb268524279105b2d
treec8ef2ca1529fd552762cefde6a3fb69328a9bc9d
parentbb1d8d7a84869c4e37fbe7d065df087e4e2456a9
qemu: cpu hotplug: Fix error handling logic

The cpu hotplug helper functions used negative error handling in a part
of them, although some code that was added later didn't properly set the
error codes in some cases. This would cause improper error messages in
cases where we couldn't modify the numa cpu mask and a few other cases.

Fix the logic by converting it to the regularly used pattern.
src/qemu/qemu_driver.c