File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -2187,11 +2187,12 @@ static struct iommu_device *amd_iommu_probe_device(struct device *dev)
2187
2187
dev_err (dev , "Failed to initialize - trying to proceed anyway\n" );
2188
2188
iommu_dev = ERR_PTR (ret );
2189
2189
iommu_ignore_device (iommu , dev );
2190
- } else {
2191
- amd_iommu_set_pci_msi_domain (dev , iommu );
2192
- iommu_dev = & iommu -> iommu ;
2190
+ goto out_err ;
2193
2191
}
2194
2192
2193
+ amd_iommu_set_pci_msi_domain (dev , iommu );
2194
+ iommu_dev = & iommu -> iommu ;
2195
+
2195
2196
/*
2196
2197
* If IOMMU and device supports PASID then it will contain max
2197
2198
* supported PASIDs, else it will be zero.
@@ -2203,6 +2204,7 @@ static struct iommu_device *amd_iommu_probe_device(struct device *dev)
2203
2204
pci_max_pasids (to_pci_dev (dev )));
2204
2205
}
2205
2206
2207
+ out_err :
2206
2208
iommu_completion_wait (iommu );
2207
2209
2208
2210
return iommu_dev ;
You can’t perform that action at this time.
0 commit comments