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-2F2Czv4BOaCWWCy7my...