New Defects reported by Coverity Scan for libvirt

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 470747: (FORWARD_NULL) /src/qemu/qemu_extdevice.c: 206 in qemuExtDevicesStart() /src/qemu/qemu_extdevice.c: 206 in qemuExtDevicesStart() /src/qemu/qemu_extdevice.c: 206 in qemuExtDevicesStart() ________________________________________________________________________________________________________ *** CID 470747: (FORWARD_NULL) /src/qemu/qemu_extdevice.c: 206 in qemuExtDevicesStart() 200 if (persistentTPMDef && 201 (persistentTPMDef->type != tpm->type || 202 persistentTPMDef->model != tpm->model)) 203 persistentTPMDef = NULL; 204 } 205
CID 470747: (FORWARD_NULL) Passing null pointer "persistentTPMDef" to "qemuExtTPMStart", which dereferences it. (The dereference is assumed on the basis of the "nonnull" parameter attribute.)
206 if (tpm->type == VIR_DOMAIN_TPM_TYPE_EMULATOR && 207 qemuExtTPMStart(driver, vm, tpm, persistentTPMDef, 208 incomingMigration) < 0) 209 return -1; 210 } 211 /src/qemu/qemu_extdevice.c: 206 in qemuExtDevicesStart() 200 if (persistentTPMDef && 201 (persistentTPMDef->type != tpm->type || 202 persistentTPMDef->model != tpm->model)) 203 persistentTPMDef = NULL; 204 } 205
CID 470747: (FORWARD_NULL) Passing null pointer "persistentTPMDef" to "qemuExtTPMStart", which dereferences it. (The dereference is assumed on the basis of the "nonnull" parameter attribute.)
206 if (tpm->type == VIR_DOMAIN_TPM_TYPE_EMULATOR && 207 qemuExtTPMStart(driver, vm, tpm, persistentTPMDef, 208 incomingMigration) < 0) 209 return -1; 210 } 211 /src/qemu/qemu_extdevice.c: 206 in qemuExtDevicesStart() 200 if (persistentTPMDef && 201 (persistentTPMDef->type != tpm->type || 202 persistentTPMDef->model != tpm->model)) 203 persistentTPMDef = NULL; 204 } 205
CID 470747: (FORWARD_NULL) Passing null pointer "persistentTPMDef" to "qemuExtTPMStart", which dereferences it. (The dereference is assumed on the basis of the "nonnull" parameter attribute.)
206 if (tpm->type == VIR_DOMAIN_TPM_TYPE_EMULATOR && 207 qemuExtTPMStart(driver, vm, tpm, persistentTPMDef, 208 incomingMigration) < 0) 209 return -1; 210 } 211
________________________________________________________________________________________________________ To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=u001.AxU2LYlgjL6eX23u9ErQy-2B...
participants (1)
-
scan-admin@coverity.com