]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vcpupin: Fix returning of arrays from virDomainVcpuPinAdd
authorPeter Krempa <pkrempa@redhat.com>
Thu, 30 Aug 2012 13:38:37 +0000 (15:38 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 30 Aug 2012 14:45:38 +0000 (16:45 +0200)
commit077e7bf51f17c20bcf49aac1dff79247e13d5d6d
treeb9655f8fd2c84f5c927fda7ca48ec75b2e1724c6
parent40dfb52517d497a3f753b3767c513cf2dce7b93f
vcpupin: Fix returning of arrays from virDomainVcpuPinAdd

virDomainVcpuPinAdd does a realloc on vcpupin_list if the new vcpu pin
definition doesn't fit into the array. The list is an array of pointers
but the function definition didn't support returning the changed pointer
to the caller if it was realloced. This caused segfaults if realloc
would change the base pointer.
src/conf/domain_conf.c
src/conf/domain_conf.h
src/libxl/libxl_driver.c
src/qemu/qemu_driver.c
src/xen/xend_internal.c