]> git.ipfire.org Git - thirdparty/libvirt.git/commit
fix error when parsing ppc64 models on x86 host
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Fri, 9 Dec 2011 17:18:58 +0000 (12:18 -0500)
committerStefan Berger <stefanb@us.ibm.com>
Fri, 9 Dec 2011 17:18:58 +0000 (12:18 -0500)
commit84f5633312d65e60bdcaa34753c4fcf9f6cf3379
tree690d955991d2c50190a9c71fca2d0a4034f56aa3
parentb1d6d56cebdc50e3b20255f129193c725bc68417
fix error when parsing ppc64 models on x86 host

When parsing ppc64 models on an x86 host an out-of-memory error message is displayed due
to it checking for retcpus being NULL. Fix this by removing the check whether retcpus is NULL
since we will realloc into this variable.
Also in the X86 model parser display the OOM error at the location where it happens.
src/qemu/qemu_capabilities.c