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.
Showing
想要评论请 注册 或 登录