Hello Lu Baolu,
This is a semi-automatic email about new static checker warnings.
The patch 4c82b88696ac: "iommu/vt-d: Allocate/register iopf queue for
sva devices" from Jun 10, 2021, leads to the following Smatch
complaint:
drivers/iommu/intel/iommu.c:5335 intel_iommu_enable_sva()
warn: variable dereferenced before check 'info' (see line 5332)
drivers/iommu/intel/iommu.c
5331 struct device_domain_info *info = get_domain_info(dev);
5332 struct intel_iommu *iommu = info->iommu;
^^^^^^^^^^^
Dereferenced
5333 int ret;
5334
5335 if (!info || !iommu || dmar_disabled)
^^^^^
Checked too late. <dramatic prairie dog.gif>
5336 return -EINVAL;
5337
regards,
dan carpenter
_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu