]> xenbits.xensource.com Git - libvirt.git/commit
qemu: remove memset params array to zero in qemuDomainGetPercpuStats
authorGao feng <gaofeng@cn.fujitsu.com>
Wed, 15 Jan 2014 08:19:28 +0000 (16:19 +0800)
committerGao feng <gaofeng@cn.fujitsu.com>
Fri, 24 Jan 2014 08:31:53 +0000 (16:31 +0800)
commit71f7d5840fea6808895387a26133dcf738dc0eda
treea37e69b422d407f7eda28ea054e2224720297fbc
parent119eb4a1408d94f840c5d4bb8bd04bd8392e8fbb
qemu: remove memset params array to zero in qemuDomainGetPercpuStats

the array params is allocated by VIR_ALLOC_N in
remoteDispatchDomainGetCPUStats. it had been set
to zero. No need to reset it to zero again, and
this reset here is incorrect too, nparams * ncpus
is the array length not the size of params array.

Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
src/qemu/qemu_driver.c