]> git.ipfire.org Git - thirdparty/libvirt.git/commit
nodeinfo: Resolve Coverity NEGATIVE_RETURNS
authorJohn Ferlan <jferlan@redhat.com>
Thu, 4 Sep 2014 21:00:30 +0000 (17:00 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 11 Sep 2014 12:10:14 +0000 (08:10 -0400)
commit34476d720fdb7fcd86f4a226064a6d9f3d93d550
tree79e19e3a652fe9d15db4930b3a9822b7f45b81bf
parent35a50ea8c7918ec99724df73281c0d54129be231
nodeinfo: Resolve Coverity NEGATIVE_RETURNS

If the virNumaGetNodeCPUs() call fails with -1, then jumping to cleanup
with 'cpus == NULL' and calling virCapabilitiesClearHostNUMACellCPUTopology
will cause issues.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/nodeinfo.c