]> git.ipfire.org Git - thirdparty/libvirt.git/commit
cgroup: fix libvirtd crash caused by messed memory
authorGuannan Ren <gren@redhat.com>
Fri, 31 Aug 2012 08:45:02 +0000 (16:45 +0800)
committerGuannan Ren <gren@redhat.com>
Fri, 31 Aug 2012 08:45:02 +0000 (16:45 +0800)
commitfccab89def6dd13b895d8a6578573f8abc50401a
tree4e97b1ac1444d832dc22fb3848b0ad101e42ce03
parent657fef1401cce0227263e05488b0769765467b73
cgroup: fix libvirtd crash caused by messed memory

The variable max_id is initialized again in the step of
getting cpu mapping variable map2. But in the next for loop
we still expect original value of max_id, the bug will
crash libvirtd when using on NUMA machine with big number
of cpus.
src/qemu/qemu_driver.c