]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virresctrl: fix starting VMs with cputune.memorytune specified
authorPavel Hrdina <phrdina@redhat.com>
Mon, 21 Jun 2021 11:03:51 +0000 (13:03 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 21 Jun 2021 11:17:18 +0000 (13:17 +0200)
commit36d6da4ebf9b648ca378d93a7cad696f045a5073
tree0354e8e26854a3b896690d8ba70e3e3931572dee
parent71012d7164e869140a653a4ab8b15aaa0f1826e1
virresctrl: fix starting VMs with cputune.memorytune specified

When removing check for return value of VIR_EXPAND_N this place was
incorrectly modified causing failure to start a VM with cputune
memorytune configured with useless error message:

    error: Failed to start domain 'vm1'
    error: An error occurred, but the cause is unknown

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1973094
Fixes: 7d2fd6ef0163a939adb7ce0f0fad3b7654c340de
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/util/virresctrl.c