]> xenbits.xensource.com Git - libvirt.git/commit
qemu_hostdev: Resolve Coverity issue
authorJohn Ferlan <jferlan@redhat.com>
Thu, 11 Jul 2013 14:42:30 +0000 (10:42 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 11 Jul 2013 18:18:12 +0000 (14:18 -0400)
commita5fcea5513bfcaef979d24b9410181bbb82f50a6
treef845ff6e5b641bd5181857c129d37efeb7c60ce9
parentba3427a019308ce4ffa41a1ae54ad71036168d51
qemu_hostdev: Resolve Coverity issue

Recent changes uncovered a possibility that 'last_processed_hostdev_vf'
was set to -1 in 'qemuPrepareHostdevPCIDevices' and would cause problems
in for loop end condition in the 'resetvfnetconfig' label if the
variable was never set to 'i' due to 'qemuDomainHostdevNetConfigReplace'
failure.
src/qemu/qemu_hostdev.c