From: Peter Krempa Date: Thu, 4 Jun 2015 11:47:02 +0000 (+0200) Subject: qemu: Update balloon info only if job is allowed X-Git-Tag: v1.2.17-rc1~260 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f3e5325f509fd4fde5ed4c66f2be50fe9412359;p=thirdparty%2Flibvirt.git qemu: Update balloon info only if job is allowed In qemuDomainUpdateCurrentMemorySize I misplaced the actual update of the balloon size to a place where it may not be initialized. Move it a few lines above. --- diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index 3826b2fce3..0682390e83 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -3256,9 +3256,9 @@ qemuDomainUpdateCurrentMemorySize(virQEMUDriverPtr driver, if (ret < 0) return -1; - } - vm->def->mem.cur_balloon = balloon; + vm->def->mem.cur_balloon = balloon; + } return 0; }