]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
virsh-nodedev: Resolve Coverity issues
authorJohn Ferlan <jferlan@redhat.com>
Thu, 11 Jul 2013 14:33:29 +0000 (10:33 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 11 Jul 2013 18:18:12 +0000 (14:18 -0400)
commitf926804a91732ed9218000d9a983b928d616ac48
treee2040f0c1f8aebf2633979ea93e36e16bfb4068c
parent50210ab9ff9dedb8e957b5f18e2ddb0ced324ac3
virsh-nodedev: Resolve Coverity issues

Recent changes uncovered FORWARD_NULL and NEGATIVE_RETURNS problems with
the processing of the 'ndevices' and its associated allocated arrays in
'vshNodeDeviceListCollect' due to the possibility of returning -1 in a
call and using the returned value as a for loop index end condition.
tools/virsh-nodedev.c