New Defects reported by Coverity Scan for libvirt

scan-admin at coverity.com scan-admin at coverity.com
Wed Nov 25 08:42:56 UTC 2020


Hi,

Please find the latest report on new defect(s) introduced to libvirt found with Coverity Scan.

1 new defect(s) introduced to libvirt found with Coverity Scan.


New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)


** CID 307500:  Control flow issues  (DEADCODE)
/src/hyperv/hyperv_driver.c: 565 in hypervDomainDefParsePhysicalDisk()


________________________________________________________________________________________________________
*** CID 307500:  Control flow issues  (DEADCODE)
/src/hyperv/hyperv_driver.c: 565 in hypervDomainDefParsePhysicalDisk()
559         }
560     
561         driveNumberStr = g_strdup_printf("%u", diskdrive->data->DriveNumber);
562         virDomainDiskSetSource(disk, driveNumberStr);
563     
564         if (addr < 0)
>>>     CID 307500:  Control flow issues  (DEADCODE)
>>>     Execution cannot reach this statement: "goto cleanup;".
565             goto cleanup;
566     
567         if (controller->data->ResourceType == MSVM_RASD_RESOURCETYPE_PARALLEL_SCSI_HBA) {
568             for (i = 0; i < HYPERV_MAX_SCSI_CONTROLLERS; i++) {
569                 if (controller == scsiControllers[i]) {
570                     ctrlr_idx = i;


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yqXyKjvBooc6PgQklkMPQjdETL0zD-2BwwS2MT3CUz0PGk4uLnDSo8-2B2mZ3lSeSytwjA-3DIT0T_CkO38-2FnXVYPAlDbR1ZxdHNqvqoSWeUuqu9763V-2FVMwwlLJkanwsIb5-2FiCnXDQmkkn7TwrB18Drf2Iw29JW7s5YlNofw7Ma8i0WF-2FkxfA55r8dvK4Lfaty-2BLcbaROgNTqZHwk4JZ6wrUJC-2B8MRDp4jY56aYSVspGYROvaEcDBbMuEkHYvslejIJGMShT3lzeidJauT1FfdsWfDkWpK9-2FcJ5mwOxKywCEDbpbfIlnZSsw-3D




More information about the Libvirt-ci mailing list