]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
Wipe nodeinfo structure before filling it
authorJiri Denemark <jdenemar@redhat.com>
Tue, 9 Mar 2010 13:54:01 +0000 (14:54 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 9 Mar 2010 16:31:15 +0000 (17:31 +0100)
commit22e39d0ee445173610bab6fbead676abd528627b
tree74008cbb06e52b1b7da6f03350c731884b695635
parent2a13ecc9bef5e949bcf4aec7301487bb456170ec
Wipe nodeinfo structure before filling it

The nodeinfo structure wasn't initialized in qemu driver and with the
recent change in CPU topology parsing, old value of nodeinfo->sockets
could be used and incremented giving totally bogus results.

Let's just wipe the structure completely.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/nodeinfo.c