New Defects reported by Coverity Scan for libvirt

scan-admin at coverity.com scan-admin at coverity.com
Fri Apr 9 08:48:14 UTC 2021


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 317619:  Null pointer dereferences  (NULL_RETURNS)
/src/node_device/node_device_driver.c: 1195 in nodeDeviceDestroy()


________________________________________________________________________________________________________
*** CID 317619:  Null pointer dereferences  (NULL_RETURNS)
/src/node_device/node_device_driver.c: 1195 in nodeDeviceDestroy()
1189              * to resort to a workaround.  vfio only allows the group for a device
1190              * to be opened by one user at a time. So if we get EBUSY when opening
1191              * the group, we infer that the device is in use and therefore we
1192              * shouldn't try to remove the device. */
1193             g_autofree char *vfiogroup =
1194                 virMediatedDeviceGetIOMMUGroupDev(def->caps->data.mdev.uuid);
>>>     CID 317619:  Null pointer dereferences  (NULL_RETURNS)
>>>     Dereferencing a pointer that might be "NULL" "vfiogroup" when calling "open". [Note: The source code implementation of the function has been overridden by a builtin model.]
1195             VIR_AUTOCLOSE fd = open(vfiogroup, O_RDONLY);
1196             g_autofree char *errmsg = NULL;
1197     
1198             if (fd < 0 && errno == EBUSY) {
1199                 virReportError(VIR_ERR_INTERNAL_ERROR,
1200                                _("Unable to destroy '%s': device in use"),


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yqXyKjvBooc6PgQklkMPQjdETL0zD-2BwwS2MT3CUz0PGk4uLnDSo8-2B2mZ3lSeSytwjA-3DmdOU_CkO38-2FnXVYPAlDbR1ZxdHNqvqoSWeUuqu9763V-2FVMwxwwnD9tGx1CwfwckabIMZNMx8SkqJlPLFv9mDwh-2FOzoLVDX3icicD8vxKJLybwNmpdfnIny8KAVvABTh-2BnH538eQIa8FZVgfxoH6EUsNOjgK5dCn8uQ2u5ryCgrwaNzO7lEd3GvKMQnDnNw2Ph-2FcdwuALzWaRY-2B9TlVWCgF4Z47g-3D-3D




More information about the Libvirt-ci mailing list