]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Resolve Coverity FORWARD_NULL
authorJohn Ferlan <jferlan@redhat.com>
Tue, 5 May 2015 11:13:19 +0000 (07:13 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 6 May 2015 00:02:37 +0000 (20:02 -0400)
commitb8e60f00d8f27d36350657339ab51cb4ac5469bc
tree50ab6aebdf0e23a58233d3d4d4f01ebbb99ccd8b
parent3e4ce35926c369b0efe68ec2b8ed22fcac8423a6
qemu: Resolve Coverity FORWARD_NULL

Coverity points out that qemuMonitorGetAllBlockStatsInfo could return a
-1 and thus not fill in 'stats' (leaving it NULL). Then the call to
qemuMonitorBlockStatsUpdateCapacity will dereference it.
src/qemu/qemu_driver.c